Logo

上個主題

sqlite3 --- SQLite 資料庫的 DB-API 2.0 介面

下個主題

zlib --- 相容於 gzip 的壓縮

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

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

最後更新於 3月 31, 2023。 Found a bug?
使用 Sphinx 4.5.0 建立。