Logo

上一个主题

11.13. sqlite3 — DB-API 2.0 interface for SQLite databases

下一个主题

12.1. zlib — Compression compatible with gzip

本页

  • 显示源代码

快速搜索

This document is for an old version of Python that is no longer supported. You should upgrade, and read the Python documentation for the current stable release.

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • Python 2.7.18 文档 »
  • The Python Standard Library »
  • |

12. Data Compression and Archiving¶

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

  • 12.1. zlib — Compression compatible with gzip
  • 12.2. gzip — Support for gzip files
    • 12.2.1. Examples of usage
  • 12.3. bz2 — Compression compatible with bzip2
    • 12.3.1. (De)compression of files
    • 12.3.2. Sequential (de)compression
    • 12.3.3. One-shot (de)compression
  • 12.4. zipfile — Work with ZIP archives
    • 12.4.1. ZipFile Objects
    • 12.4.2. PyZipFile Objects
    • 12.4.3. ZipInfo Objects
    • 12.4.4. Command-Line Interface
      • 12.4.4.1. Command-line options
  • 12.5. tarfile — Read and write tar archive files
    • 12.5.1. TarFile Objects
    • 12.5.2. TarInfo Objects
    • 12.5.3. Examples
    • 12.5.4. Supported tar formats
    • 12.5.5. Unicode issues

上一个主题

11.13. sqlite3 — DB-API 2.0 interface for SQLite databases

下一个主题

12.1. zlib — Compression compatible with gzip

本页

  • 显示源代码

快速搜索

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • Python 2.7.18 文档 »
  • The Python Standard Library »
  • |
© 版权所有 1990-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.

最后更新于 8月 10, 2025.
Created using Sphinx 2.3.1.