瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • 3.7.14 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |

資料壓縮與保存¶

The modules described in this chapter support data compression with the zlib, gzip, bzip2 and lzma algorithms, and the creation of ZIP- and tar-format archives. See also Archiving operations provided by the shutil module.

  • zlib --- Compression compatible with gzip
  • gzip --- Support for gzip files
    • Examples of usage
  • bz2 --- Support for bzip2 compression
    • (De)compression of files
    • Incremental (de)compression
    • One-shot (de)compression
    • Examples of usage
  • lzma --- Compression using the LZMA algorithm
    • Reading and writing compressed files
    • Compressing and decompressing data in memory
    • Miscellaneous
    • Specifying custom filter chains
    • Examples
  • zipfile --- Work with ZIP archives
    • ZipFile Objects
    • PyZipFile Objects
    • ZipInfo Objects
    • Command-Line Interface
      • Command-line options
  • tarfile --- Read and write tar archive files
    • TarFile Objects
    • TarInfo Objects
    • Command-Line Interface
      • Command-line options
    • Examples
    • Supported tar formats
    • Unicode issues

上個主題

sqlite3 --- DB-API 2.0 interface for SQLite databases

下個主題

zlib --- Compression compatible with gzip

本頁

  • Report a Bug
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • 3.7.14 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |
© 版權所有 2001-2022, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
最後更新於 9月 08, 2022。 Found a bug?
Created using Sphinx 2.3.1.