資料壓縮與保存
**************

本章中描述的模組支援使用 zlib、gzip、bzip2 和 lzma 演算法進行資料壓縮
，以及建立 ZIP 和 tar 格式的存檔。另請參閱 "shutil" 模組提供的
Archiving operations。

* "zlib" --- 相容於 **gzip** 的壓縮

* "gzip" --- Support for **gzip** files

  * 用法範例

  * Command Line Interface

    * Command line options

* "bz2" --- Support for **bzip2** compression

  * (De)compression of files

  * Incremental (de)compression

  * One-shot (de)compression

  * 用法範例

* "lzma" --- Compression using the LZMA algorithm

  * Reading and writing compressed files

  * Compressing and decompressing data in memory

  * Miscellaneous

  * Specifying custom filter chains

  * 範例

* "zipfile" --- Work with ZIP archives

  * ZipFile 物件

  * Path Objects

  * PyZipFile 物件

  * ZipInfo 物件

  * Command-Line Interface

    * Command-line options

  * Decompression pitfalls

    * From file itself

    * File System limitations

    * Resources limitations

    * Interruption

    * Default behaviors of extraction

* "tarfile" --- Read and write tar archive files

  * TarFile 物件

  * TarInfo 物件

  * Extraction filters

    * Default named filters

    * Filter errors

    * Hints for further verification

    * Supporting older Python versions

    * Stateful extraction filter example

  * Command-Line Interface

    * Command-line options

  * 範例

  * Supported tar formats

  * Unicode issues
