Logo

上個主題

rlcompleter --- GNU readline 的补全函数

下個主題

struct --- 将字节串解读为打包的二进制数据

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.11.2 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 二进制数据服务
  • |

二进制数据服务¶

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

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

另外,请参阅 Python 的内置二进制数据类型的文档 二进制序列类型 --- bytes, bytearray, memoryview 。

  • struct --- 将字节串解读为打包的二进制数据
    • 函式與例外
    • 格式字符串
      • 字节顺序,大小和对齐方式
      • 格式字符
      • 範例
    • Applications
      • Native Formats
      • Standard Formats
    • 类
  • codecs --- 编解码器注册和相关基类
    • 编解码器基类
      • 错误处理方案
      • 无状态的编码和解码
      • 增量式的编码和解码
        • IncrementalEncoder 物件
        • IncrementalDecoder 物件
      • 流式的编码和解码
        • StreamWriter 物件
        • StreamReader 物件
        • StreamReaderWriter 物件
        • StreamRecoder 物件
    • 编码格式与 Unicode
    • 标准编码
    • Python 专属的编码格式
      • 文字编码
      • 二进制转换
      • 文字转换
    • encodings.idna --- 应用程序中的国际化域名
    • encodings.mbcs --- Windows ANSI代码页
    • encodings.utf_8_sig --- 带BOM签名的UTF-8编解码器

上個主題

rlcompleter --- GNU readline 的补全函数

下個主題

struct --- 将字节串解读为打包的二进制数据

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.11.2 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 二进制数据服务
  • |
© 版權 2001-2023, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 3月 30, 2023。 Found a bug?
使用 Sphinx 4.5.0 建立。