导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.8.0a2 文档 »
  • Python 标准库 »
  • |

二进制数据服务¶

本章介绍的模块提供了一些操作二进制数据的基本服务操作。 有关二进制数据的其他操作,特别是与文件格式和网络协议有关的操作,将在相关章节中介绍。

下面描述的一些库 文本处理服务 也可以使用 ASCII 兼容的二进制格式(例如 re )或所有二进制数据(例如 difflib )。

另外,请参阅 Python 的内置二进制数据类型的文档 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
      • 示例
    • 类
  • codecs --- Codec registry and base classes
    • Codec Base Classes
      • Error Handlers
      • Stateless Encoding and Decoding
      • Incremental Encoding and Decoding
        • IncrementalEncoder Objects
        • IncrementalDecoder Objects
      • Stream Encoding and Decoding
        • StreamWriter Objects
        • StreamReader Objects
        • StreamReaderWriter Objects
        • StreamRecoder Objects
    • Encodings and Unicode
    • Standard Encodings
    • Python Specific Encodings
      • Text Encodings
      • Binary Transforms
      • Text Transforms
    • encodings.idna --- Internationalized Domain Names in Applications
    • encodings.mbcs --- Windows ANSI codepage
    • encodings.utf_8_sig --- UTF-8 codec with BOM signature

上一个主题

rlcompleter --- Completion function for GNU readline

下一个主题

struct --- Interpret bytes as packed binary data

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.8.0a2 文档 »
  • Python 标准库 »
  • |
© 版权所有 2001-2019, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。

最后更新于 3月 26, 2019. Found a bug?
使用Sphinx1.8.4 创建。