This document is for an old version of Python that is no longer supported. You should upgrade and read the Python 当前稳定版本的文档.

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • Python 2.7.18 文档 »
  • Python 标准库 »

12. 数据压缩和存档¶

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 归档操作 provided by the shutil module.

  • 12.1. zlib — 与 gzip 兼容的压缩
  • 12.2. gzip — 对 gzip 格式的支持
    • 12.2.1. 用法示例
  • 12.3. bz2 — Compression compatible with bzip2
    • 12.3.1. 文件压缩和解压
    • 12.3.2. Sequential (de)compression
    • 12.3.3. 一次性压缩或解压
  • 12.4. zipfile — 使用ZIP存档
    • 12.4.1. ZipFile 对象
    • 12.4.2. PyZipFile 对象
    • 12.4.3. ZipInfo 对象
    • 12.4.4. 命令行界面
      • 12.4.4.1. 命令行选项
  • 12.5. tarfile — 读写tar归档文件
    • 12.5.1. TarFile 对象
    • 12.5.2. TarInfo 对象
    • 12.5.3. 例子
    • 12.5.4. 受支持的 tar 格式
    • 12.5.5. Unicode 问题

上一个主题

11.13. sqlite3 — SQLite 数据库 DB-API 2.0 接口模块

下一个主题

12.1. zlib — 与 gzip 兼容的压缩

本页

  • 显示源代码

快速搜索

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • Python 2.7.18 文档 »
  • Python 标准库 »
© 版权所有 1990-2020, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。
Last updated on 6月 19, 2020. 发现了问题?
使用Sphinx2.3.1 创建。