“Python/docs/3.9/library/binary”的版本间差异

来自菜鸟教程
Python/docs/3.9/library/binary
跳转至:导航、​搜索
(autoload)
 
(Page commit)
 
第1行: 第1行:
 +
{{DISPLAYTITLE:二进制数据服务 — Python 文档}}
 
<div id="binary-data-services" class="section">
 
<div id="binary-data-services" class="section">
  
 
<span id="binaryservices"></span>
 
<span id="binaryservices"></span>
= 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#textservices|<span class="std std-ref">Text Processing Services</span>]] also work with either
+
[[../text#textservices|Text Processing Services]] 下描述的一些库也适用于 ASCII 兼容的二进制格式(例如,[[../re#module-re|re]])或所有二进制数据(例如,[[../difflib#module-difflib|difflib]].
ASCII-compatible binary formats (for example, [[../re#module-re|<code>re</code>]]) or all binary data
 
(for example, [[../difflib#module-difflib|<code>difflib</code>]]).
 
  
In addition, see the documentation for Python's built-in binary data types in
+
此外,请参阅 [[../stdtypes#binaryseq|二进制序列类型 — 字节、字节数组、内存视图]] 中有关 Python 内置二进制数据类型的文档。
[[../stdtypes#binaryseq|<span class="std std-ref">Binary Sequence Types --- bytes, bytearray, memoryview</span>]].
 
  
 
<div class="toctree-wrapper compound">
 
<div class="toctree-wrapper compound">
  
* [[../struct|<code>struct</code> --- Interpret bytes as packed binary data]]
+
* [[../struct|<code>struct</code> — 将字节解释为打包的二进制数据]]
** [[../struct#functions-and-exceptions|Functions and Exceptions]]
+
** [[../struct#functions-and-exceptions|函数和异常]]
** [[../struct#format-strings|Format Strings]]
+
** [[../struct#format-strings|格式化字符串]]
*** [[../struct#byte-order-size-and-alignment|Byte Order, Size, and Alignment]]
+
*** [[../struct#byte-order-size-and-alignment|字节顺序、大小和对齐]]
*** [[../struct#format-characters|Format Characters]]
+
*** [[../struct#format-characters|格式字符]]
*** [[../struct#examples|Examples]]
+
*** [[../struct#examples|例子]]
** [[../struct#classes|Classes]]
+
** [[../struct#classes|班级]]
* [[../codecs|<code>codecs</code> --- Codec registry and base classes]]
+
* [[../codecs|<code>codecs</code> — 编解码器注册表和基类]]
** [[../codecs#codec-base-classes|Codec Base Classes]]
+
** [[../codecs#codec-base-classes|编解码器基类]]
*** [[../codecs#error-handlers|Error Handlers]]
+
*** [[../codecs#error-handlers|错误处理程序]]
*** [[../codecs#stateless-encoding-and-decoding|Stateless Encoding and Decoding]]
+
*** [[../codecs#stateless-encoding-and-decoding|无状态编码和解码]]
*** [[../codecs#incremental-encoding-and-decoding|Incremental Encoding and Decoding]]
+
*** [[../codecs#incremental-encoding-and-decoding|增量编码和解码]]
**** [[../codecs#incrementalencoder-objects|IncrementalEncoder Objects]]
+
**** [[../codecs#incrementalencoder-objects|增量编码器对象]]
**** [[../codecs#incrementaldecoder-objects|IncrementalDecoder Objects]]
+
**** [[../codecs#incrementaldecoder-objects|增量解码器对象]]
*** [[../codecs#stream-encoding-and-decoding|Stream Encoding and Decoding]]
+
*** [[../codecs#stream-encoding-and-decoding|流编码和解码]]
**** [[../codecs#streamwriter-objects|StreamWriter Objects]]
+
**** [[../codecs#streamwriter-objects|StreamWriter 对象]]
**** [[../codecs#streamreader-objects|StreamReader Objects]]
+
**** [[../codecs#streamreader-objects|StreamReader 对象]]
**** [[../codecs#streamreaderwriter-objects|StreamReaderWriter Objects]]
+
**** [[../codecs#streamreaderwriter-objects|StreamReaderWriter 对象]]
**** [[../codecs#streamrecoder-objects|StreamRecoder Objects]]
+
**** [[../codecs#streamrecoder-objects|StreamRecoder 对象]]
** [[../codecs#encodings-and-unicode|Encodings and Unicode]]
+
** [[../codecs#encodings-and-unicode|编码和 Unicode]]
** [[../codecs#standard-encodings|Standard Encodings]]
+
** [[../codecs#standard-encodings|标准编码]]
** [[../codecs#python-specific-encodings|Python Specific Encodings]]
+
** [[../codecs#python-specific-encodings|Python 特定编码]]
*** [[../codecs#text-encodings|Text Encodings]]
+
*** [[../codecs#text-encodings|文本编码]]
*** [[../codecs#binary-transforms|Binary Transforms]]
+
*** [[../codecs#binary-transforms|二进制变换]]
*** [[../codecs#text-transforms|Text Transforms]]
+
*** [[../codecs#text-transforms|文本变换]]
** [[../codecs#module-encodings|<code>encodings.idna</code> --- Internationalized Domain Names in Applications]]
+
** [[../codecs#module-encodings|<code>encodings.idna</code> — 应用程序中的国际化域名]]
** [[../codecs#module-encodings|<code>encodings.mbcs</code> --- Windows ANSI codepage]]
+
** [[../codecs#module-encodings|<code>encodings.mbcs</code> Windows ANSI 代码页]]
** [[../codecs#module-encodings|<code>encodings.utf_8_sig</code> --- UTF-8 codec with BOM signature]]
+
** [[../codecs#module-encodings|<code>encodings.utf_8_sig</code> — 带有 BOM 签名的 UTF-8 编解码器]]
  
  
第51行: 第46行:
  
 
</div>
 
</div>
 +
<div class="clearer">
  
[[Category:Python 3.9 中文文档]]
+
 
 +
 
 +
</div>
 +
 
 +
[[Category:Python 3.9 文档]]

2021年10月31日 (日) 04:51的最新版本