Docs4dev
Docs
Docs4dev
  • Tools
  • Privacy
  • GitHub

Search

Loading search index…

No recent searches

No results for "Query here"

  • to select
  • to navigate
  • to close

Search by FlexSearch

On this page

On this page
python / 2.7.15 / all / library-archiving.html

12. 数据压缩和归档

本章中描述的模块支持使用 zlib,gzip 和 bzip2 算法进行数据压缩,以及创建 ZIP 和 tar 格式的归档文件。另请参见shutil模块提供的Archiving operations。

  • 12 .1. zlib —压缩与 gzip 兼容

  • 12 .2. gzip —支持 gzip 文件

  • 12 .2.1. 使用范例

  • 12 .3. bz2 —压缩与 bzip2 兼容

  • 12 .3.1. (解压缩)文件

    • 12 .3.2. Sequences(解压缩)

    • 12 .3.3. 一击(解压缩)

  • 12 .4. zipfile —使用 ZIPFiles

  • 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. Examples

    • 12 .5.4. 支持的 tar 格式

    • 12 .5.5. Unicode 问题

  • Privacy Policy
  • 蜀ICP备14021783号-6
  • Brought to you by Docs4dev