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 / 3.7.2rc1 / all / library-archiving.html

数据压缩和存档

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

  • zlib —压缩与 gzip 兼容

  • gzip —支持 gzip 文件

  • 使用范例

    • 命令行界面
  • 命令行选项

  • bz2 —支持 bzip2 压缩

  • (解压缩)文件

    • Incremental (de)compression

    • One-shot (de)compression

    • 使用范例

  • lzma —使用 LZMA 算法压缩

  • 读写 zipfile

    • 压缩和解压缩内存中的数据

    • Miscellaneous

    • 指定自定义过滤器链

    • Examples

  • zipfile —使用 ZIPFiles

  • ZipFile Objects

    • Path Objects

    • PyZipFile Objects

    • ZipInfo Objects

    • Command-Line Interface

  • Command-line options

    • Decompression pitfalls
  • 来自文件本身

    • 文件系统限制

    • Resources limitations

    • Interruption

    • 提取的默认行为

  • tarfile —读写 tar 存档文件

  • TarFile Objects

    • TarInfo Objects

    • Command-Line Interface

  • Command-line options

    • Examples

    • 支持的 tar 格式

    • Unicode issues

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