Logo

上個主題

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

下個主題

zlib --- 与 gzip 兼容的压缩

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.10.5 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 資料壓縮與保存
  • |

資料壓縮與保存¶

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

  • zlib --- 与 gzip 兼容的压缩
  • gzip --- 对 gzip 格式的支持
    • 用法範例
    • 命令行界面
      • 命令行选项
  • bz2 --- 对 bzip2 压缩算法的支持
    • 文件压缩和解压
    • 增量压缩和解压
    • 一次性压缩或解压缩
    • 用法範例
  • lzma --- 用 LZMA 算法压缩
    • 读写压缩文件
    • 在内存中压缩和解压缩数据
    • 杂项
    • 指定自定义的过滤器链
    • 範例
  • zipfile --- 使用ZIP存档
    • ZipFile 物件
    • Path 对象
    • PyZipFile 物件
    • ZipInfo 物件
    • 命令行接口
      • 命令行选项
    • 解压缩的障碍
      • 由于文件本身
      • 文件系统限制
      • 资源限制
      • 中断
      • 提取的默认行为
  • tarfile --- 读写tar归档文件
    • TarFile 物件
    • TarInfo 物件
    • 命令行接口
      • 命令行选项
    • 範例
    • 受支持的 tar 格式
    • Unicode 问题

上個主題

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

下個主題

zlib --- 与 gzip 兼容的压缩

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.10.5 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 資料壓縮與保存
  • |
© 版權 2001-2022, 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.

最後更新於 6月 27, 2022。 Found a bug?
Created using Sphinx 3.4.3.