Python logo

上個主題

rlcompleter --- GNU readline 的補全函式

下個主題

struct --- 將位元組直譯為打包起來的二進位資料

此頁面

  • 回報錯誤
  • 顯示原始碼

導航

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.14.0rc2 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 二進位資料服務
  • |
  • |

二進位資料服務¶

本章所描述的模組提供了一些基本的二進位資料操作服務。而針對二進位資料的其他操作──尤其是關於檔案格式和網路協定的部分──則會在相關章節中詳細描述。

一些在 文本處理 (Text Processing) 服務 中提及的函式庫也可處理 ASCII 相容的二進位格式(例如,re)及所有的二進位資料(例如,difflib)。

此外,請參閱 Python 內建的二進位資料類型的文件,詳情請參考 Binary Sequence Types --- bytes, bytearray, memoryview。

  • struct --- 將位元組直譯為打包起來的二進位資料
    • 函式與例外
    • 格式字串
      • 位元組順序、大小和對齊
      • 格式字元
      • 範例
    • 應用
      • 原生格式
      • 標準格式
    • 類別
  • codecs --- 編解碼器註冊表和基底類別
    • Codec Base Classes
      • Error Handlers
      • Stateless Encoding and Decoding
      • Incremental Encoding and Decoding
        • IncrementalEncoder 物件
        • IncrementalDecoder 物件
      • 串流編碼和解碼
        • StreamWriter 物件
        • StreamReader 物件
        • StreamReaderWriter 物件
        • StreamRecoder 物件
    • 編碼和 Unicode
    • 標準編碼
    • Python Specific Encodings
      • Text Encodings
      • Binary Transforms
      • Text Transforms
    • encodings --- Encodings package
    • encodings.idna --- Internationalized Domain Names in Applications
    • encodings.mbcs --- Windows ANSI 碼頁
    • encodings.utf_8_sig --- UTF-8 codec with BOM signature

上個主題

rlcompleter --- GNU readline 的補全函式

下個主題

struct --- 將位元組直譯為打包起來的二進位資料

此頁面

  • 回報錯誤
  • 顯示原始碼
«

導航

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.14.0rc2 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 二進位資料服務
  • |
  • |
© 版權所有 2001 Python Software Foundation.
此頁面採用 Python 軟體基金會授權條款第 2 版。
文件中的範例、應用技巧與其他程式碼額外採用了 Zero Clause BSD 授權條款。
更多訊息請見歷史與授權條款。

Python 軟體基金會是一家非營利法人。 敬請捐贈。

最後更新於 9月 18, 2025 (09:15 UTC)。 發現 bug?
以 Sphinx8.2.3建立。