Python logo

上個主題

rlcompleter --- GNU readline 的補全函式

下個主題

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

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.13.5 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.13.5 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 二進位資料服務
  • |
  • |
© 版權 2001-2025, 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.

最後更新於 7月 14, 2025 (11:36 UTC)。 Found a bug?
使用 Sphinx 8.2.3 建立。
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy