資料型別
********

本章節所描述的模組 (module) 提供了多樣的專門資料型別，例如日期與時間、
固定型別陣列 (fixed-type arrays)、堆積佇列 (heap queues)、雙端佇列
(double-ended queues) 與列舉 (enumerations)。

Python 也有提供一些內建資料型別，特別是 "dict"、"list"、"set" 與
"frozenset" 和 "tuple"。"str" 類別是用來儲存 Unicode 字串，"bytes" 與
"bytearray" 類別則是用來儲存二進位制資料。

本章節包含下列模組的文件：

* "datetime" --- 日期與時間的基本型別

  * Aware and Naive Objects

  * 常數

  * Available Types

    * 常見屬性

    * Determining if an Object is Aware or Naive

  * "timedelta" 物件

    * 用法範例："timedelta"

  * "date" 物件

    * 用法範例："date"

  * "datetime" 物件

    * 用法範例："datetime"

  * "time" 物件

    * 用法範例："time"

  * "tzinfo" 物件

  * "timezone" 物件

  * "strftime()" 與 "strptime()" 的行為

    * "strftime()" 與 "strptime()" 格式碼

    * 技術細節

* "zoneinfo" --- IANA 時區支援

  * 使用 "ZoneInfo"

  * 資料來源

    * 設定資料來源

      * 編譯時期設定

      * 環境設定

      * Runtime 設定

  * "ZoneInfo" 類別

    * 字串表示

    * 封裝（Pickle）序列化

  * 函式

  * 全域變數

  * 例外與警告

* "calendar" --- 日曆相關函式

  * 命令列用法

* "collections" --- 容器資料型態

  * "ChainMap" 物件

    * "ChainMap" 範例和用法

  * "Counter" 物件

  * "deque" 物件

    * "deque" 用法

  * "defaultdict" 物件

    * "defaultdict" 範例

  * "namedtuple()" 擁有具名欄位之 tuple 的工廠函式

  * "OrderedDict" 物件

    * "OrderedDict" 範例與用法

  * "UserDict" 物件

  * "UserList" 物件

  * "UserString" 物件

* "collections.abc" --- 容器的抽象基底類別

  * Collections Abstract Base Classes

  * Collections Abstract Base Classes -- Detailed Descriptions

  * Examples and Recipes

* "heapq" --- 堆積佇列 (heap queue) 演算法

  * 基礎範例

  * 優先佇列實作細節

  * 原理

* "bisect" --- 陣列二分演算法 (Array bisection algorithm)

  * 效能考量

  * 搜尋一個已排序的 list

  * 範例

* "array" --- 高效率的數值型陣列

* "weakref" --- 弱參照

  * 弱參照物件

  * 範例

  * 最終化器物件

  * 最終化器與 "__del__()" 方法的比較

* "types" --- 動態型別建立與內建型別名稱

  * Dynamic Type Creation

  * Standard Interpreter Types

  * Additional Utility Classes and Functions

  * Coroutine Utility Functions

* "copy" --- 淺層 (shallow) 和深層 (deep) 複製操作

* "pprint" --- 資料美化列印器

  * 函式

  * PrettyPrinter 物件

  * 範例

* "reprlib" --- "repr()" 的替代實作

  * Repr 物件

  * Subclassing Repr Objects

* "enum" --- 對列舉的支援

  * 模組內容

  * 資料型別

    * 支援的 "__dunder__" 名稱

    * 支援的 "_sunder_" 名稱

  * 通用項目與裝飾器

  * 備註

* "graphlib" —-- 使用類圖 (graph-like) 結構進行操作的功能

  * 例外
