Logo

上一个主题

sqlite3 ---用于sqlite数据库的db-api 2.0接口

下一个主题

zlib --- Compression compatible with gzip

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.0a4 Documentation »
  • python标准库 »
  • 数据压缩和归档
  • |

数据压缩和归档¶

本章中描述的模块支持使用zlib、gzip、bzip2和lzma算法进行数据压缩,以及创建zip和tar格式的归档文件。也见 归档操作 提供的 shutil 模块。

  • zlib --- Compression compatible with gzip
  • gzip ---支持 gzip 文件夹
    • 使用示例
    • 命令行界面
      • 命令行选项
  • bz2 ---支持 bzip2 压缩
    • 文件压缩与解压
    • 增量(去)压缩
    • 单次压缩
    • 使用示例
  • lzma ——使用LZMA算法进行压缩
    • 读取和写入压缩文件
    • 压缩和解压缩内存中的数据
    • 其他
    • 指定自定义筛选链
    • 实例
  • zipfile ---使用Zip存档
    • zip文件对象
    • 路径对象
    • PyZipFile对象
    • ZIPFIN对象
    • 命令行界面
      • 命令行选项
    • 减压陷阱
      • 从文件本身
      • 文件系统限制
      • 资源限制
      • 中断
      • 提取的默认行为
  • tarfile ---读取和写入tar存档文件
    • tarfile对象
    • 对象信息对象
    • 命令行界面
      • 命令行选项
    • 实例
    • 支持的tar格式
    • Unicode问题

上一个主题

sqlite3 ---用于sqlite数据库的db-api 2.0接口

下一个主题

zlib --- Compression compatible with gzip

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.0a4 Documentation »
  • python标准库 »
  • 数据压缩和归档
  • |
© 版权 2001-2021, 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.

最后更新于 10月 23, 2021. Found a bug?
Created using Sphinx 4.2.0.