Python logo

Topik sebelumnya

rlcompleter --- Completion function for GNU readline

Topik berikutnya

struct --- Interpret bytes as packed binary data

This page

  • Report a bug
  • Show source

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python logo
  • Python »
  • 3.15.0a0 Documentation »
  • Pustaka Standar Python »
  • Servis Data Binary
  • |
  • |

Servis Data Binary¶

Modul-modul yang dijelaskan pada bab ini menyediakan operasi-operasi servis dasar untuk memanipulasi data binary. Operasi lainnya pada data binary, khususnya yang berkaitan dengan format file dan protokol jaringan, dijelaskan pada bagian yang relevan.

Beberapa pustaka yang dijelaskan pada Layanan Pemrosesan Teks juga bekerja dengan format-format binary yang ASCII-compatible (contohnya, re) maupun semua data binary (contohnya, difflib).

Sebagai tambahan, lihat dokumentasi untuk tipe data binary bawaan Python di Binary Sequence Types --- bytes, bytearray, memoryview.

  • struct --- Interpret bytes as packed binary data
    • Functions and Exceptions
    • Format Strings
      • Byte Order, Size, and Alignment
      • Format Characters
      • Contoh-contoh
    • Applications
      • Native Formats
      • Standard Formats
    • Classes
  • codecs --- Codec registry and base classes
    • Codec Base Classes
      • Penangan Kesalahan
      • Stateless Encoding and Decoding
      • Incremental Encoding and Decoding
        • IncrementalEncoder Objects
        • IncrementalDecoder Objects
      • Stream Encoding and Decoding
        • Objek StreamWriter
        • Objek StreamReader
        • Objek StreamReaderWriter
        • Objek StreamRecoder
    • Encodings and Unicode
    • Standard Encodings
    • Python Specific Encodings
      • Text Encodings
      • Binary Transforms
      • Standalone Codec Functions
      • Text Transforms
    • encodings --- Encodings package
    • encodings.idna --- Internationalized Domain Names in Applications
    • encodings.mbcs --- Windows ANSI codepage
    • encodings.utf_8_sig --- UTF-8 codec with BOM signature

Topik sebelumnya

rlcompleter --- Completion function for GNU readline

Topik berikutnya

struct --- Interpret bytes as packed binary data

This page

  • Report a bug
  • Show source
«

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python logo
  • Python »
  • 3.15.0a0 Documentation »
  • Pustaka Standar Python »
  • Servis Data Binary
  • |
  • |
© Hak cipta 2001 Python Software Foundation.
Halaman ini dilisensikan di bawah Lisensi Python Software Foundation Versi 2.
Contoh, resep, dan kode lainnya dalam dokumentasi juga dilisensikan di bawah Lisensi Zero Clause BSD.
Lihat Sejarah dan Lisensi untuk informasi lebih lanjut.

Python Software Foundation adalah sebuah korporasi nirlaba. Mari berdonasi.

Terakhir diperbarui pada Sep 28, 2025 (04:45 UTC). Menemukan kekutu?
Dibuat menggunakan Sphinx 8.2.3.