🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](struct.xhtml "struct --- Interpret bytes as packed binary data") | - [上一页](rlcompleter.xhtml "rlcompleter --- GNU readline的完成函数") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | # 二进制数据服务 本章介绍的模块提供了一些操作二进制数据的基本服务操作。 有关二进制数据的其他操作,特别是与文件格式和网络协议有关的操作,将在相关章节中介绍。 下面描述的一些库 [文本处理服务](text.xhtml#textservices) 也可以使用 ASCII 兼容的二进制格式(例如 [`re`](re.xhtml#module-re "re: Regular expression operations.") )或所有二进制数据(例如 [`difflib`](difflib.xhtml#module-difflib "difflib: Helpers for computing differences between objects.") )。 另外,请参阅 Python 的内置二进制数据类型的文档 [二进制序列类型 --- bytes, bytearray, memoryview](stdtypes.xhtml#binaryseq) 。 - [`struct` --- Interpret bytes as packed binary data](struct.xhtml) - [Functions and Exceptions](struct.xhtml#functions-and-exceptions) - [Format Strings](struct.xhtml#format-strings) - [Byte Order, Size, and Alignment](struct.xhtml#byte-order-size-and-alignment) - [格式字符](struct.xhtml#format-characters) - [示例](struct.xhtml#examples) - [类](struct.xhtml#classes) - [`codecs` --- Codec registry and base classes](codecs.xhtml) - [Codec Base Classes](codecs.xhtml#codec-base-classes) - [Error Handlers](codecs.xhtml#error-handlers) - [Stateless Encoding and Decoding](codecs.xhtml#stateless-encoding-and-decoding) - [Incremental Encoding and Decoding](codecs.xhtml#incremental-encoding-and-decoding) - [IncrementalEncoder Objects](codecs.xhtml#incrementalencoder-objects) - [IncrementalDecoder Objects](codecs.xhtml#incrementaldecoder-objects) - [Stream Encoding and Decoding](codecs.xhtml#stream-encoding-and-decoding) - [StreamWriter Objects](codecs.xhtml#streamwriter-objects) - [StreamReader Objects](codecs.xhtml#streamreader-objects) - [StreamReaderWriter Objects](codecs.xhtml#streamreaderwriter-objects) - [StreamRecoder Objects](codecs.xhtml#streamrecoder-objects) - [Encodings and Unicode](codecs.xhtml#encodings-and-unicode) - [标准编码](codecs.xhtml#standard-encodings) - [Python Specific Encodings](codecs.xhtml#python-specific-encodings) - [文字编码](codecs.xhtml#text-encodings) - [二进制转换](codecs.xhtml#binary-transforms) - [文字转换](codecs.xhtml#text-transforms) - [`encodings.idna` --- 应用程序中的国际化域名](codecs.xhtml#module-encodings.idna) - [`encodings.mbcs` --- Windows ANSI代码页](codecs.xhtml#module-encodings.mbcs) - [`encodings.utf_8_sig` --- 带BOM签名的UTF-8编解码器](codecs.xhtml#module-encodings.utf_8_sig) ### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](struct.xhtml "struct --- Interpret bytes as packed binary data") | - [上一页](rlcompleter.xhtml "rlcompleter --- GNU readline的完成函数") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | © [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。