瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • 3.3.7 Documentation »
  • The Python Standard Library »
  • |

7. Binary Data Services¶

The modules described in this chapter provide some basic services operations for manipulation of binary data. Other operations on binary data, specifically in relation to file formats and network protocols, are described in the relevant sections.

Some libraries described under Text Processing Services also work with either ASCII-compatible binary formats (for example, re) or all binary data (for example, difflib).

In addition, see the documentation for Python’s built-in binary data types in Binary Sequence Types — bytes, bytearray, memoryview.

  • 7.1. struct — Interpret bytes as packed binary data
    • 7.1.1. Functions and Exceptions
    • 7.1.2. Format Strings
      • 7.1.2.1. Byte Order, Size, and Alignment
      • 7.1.2.2. Format Characters
      • 7.1.2.3. Examples
    • 7.1.3. Classes
  • 7.2. codecs — Codec registry and base classes
    • 7.2.1. Codec Base Classes
      • 7.2.1.1. Codec Objects
      • 7.2.1.2. IncrementalEncoder Objects
      • 7.2.1.3. IncrementalDecoder Objects
      • 7.2.1.4. StreamWriter Objects
      • 7.2.1.5. StreamReader Objects
      • 7.2.1.6. StreamReaderWriter Objects
      • 7.2.1.7. StreamRecoder Objects
    • 7.2.2. Encodings and Unicode
    • 7.2.3. Standard Encodings
    • 7.2.4. Python Specific Encodings
    • 7.2.5. encodings.idna — Internationalized Domain Names in Applications
    • 7.2.6. encodings.mbcs — Windows ANSI codepage
    • 7.2.7. encodings.utf_8_sig — UTF-8 codec with BOM signature

上個主題

6.8. rlcompleter — Completion function for GNU readline

下個主題

7.1. struct — Interpret bytes as packed binary data

本頁

  • 顯示原始碼

快速搜尋

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • 3.3.7 Documentation »
  • The Python Standard Library »
  • |
© 版權所有 1990-2025, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 8月 10, 2025。
Created using Sphinx 1.8.4.