就业培训     下载中心     Wiki     联络
登录   注册

Log
  1. 首页
  2. Python 3.5.4
  3. 索引
  4. 模块
  5. 下一
  6. 上一
  7. Python
  8. 3.5.4 Documentation
  9. Python 标准库 »

13. 数据压缩和存档 ¶

此章描述的模块支持采用 zlib、gzip、bzip2、lzma 算法压缩数据,及创建 ZIP 和 tar 格式存档。另请参阅 存档操作 提供通过 shutil 模块。

  • 13.1. zlib — 压缩兼容 gzip
  • 13.2. gzip — 支持 gzip 文件
    • 13.2.1. Examples of usage
  • 13.3. bz2 — 支持 bzip2 压缩
    • 13.3.1. (De)compression of files
    • 13.3.2. Incremental (de)compression
    • 13.3.3. One-shot (de)compression
  • 13.4. lzma — 压缩使用 LZMA 算法
    • 13.4.1. Reading and writing compressed files
    • 13.4.2. Compressing and decompressing data in memory
    • 13.4.3. Miscellaneous
    • 13.4.4. Specifying custom filter chains
    • 13.4.5. Examples
  • 13.5. zipfile — 操控 ZIP 存档
    • 13.5.1. ZipFile Objects
    • 13.5.2. PyZipFile Objects
    • 13.5.3. ZipInfo Objects
    • 13.5.4. Command-Line Interface
      • 13.5.4.1. Command-line options
  • 13.6. tarfile — 读写 tar 存档文件
    • 13.6.1. TarFile Objects
    • 13.6.2. TarInfo Objects
    • 13.6.3. Command-Line Interface
      • 13.6.3.1. Command-line options
    • 13.6.4. Examples
    • 13.6.5. Supported tar formats
    • 13.6.6. Unicode issues

上一话题

12.6. sqlite3 — SQLite 数据库的 DB-API 2.0 接口

下一话题

13.1. zlib — 压缩兼容 gzip

本页

  • 报告 Bug
  • 展示源
  1. 首页
  2. Python 3.5.4
  3. 索引
  4. 模块
  5. 下一
  6. 上一
  7. Python
  8. 3.5.4 Documentation
  9. Python 标准库

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1