データ型¶
この章で解説されるモジュールは日付や時間、型が固定された配列、ヒープキュー、両端キュー、列挙型のような種々の特殊なデータ型を提供します。
Python also provides some built-in data types, in particular,
dict, list, set and frozenset, and
tuple. The str class is used to hold
Unicode strings, and the bytes and bytearray classes are used
to hold binary data.
この章では以下のモジュールが記述されています:
datetime--- 基本的な日付と時間の型zoneinfo--- IANA タイムゾーンのサポートcalendar--- 一般的なカレンダーに関係する機能群collections--- コンテナデータ型collections.abc--- コンテナの抽象基底クラスheapq--- ヒープキューアルゴリズムbisect--- 配列二分法アルゴリズムarray--- 効率的な数値配列weakref--- Weak referencestypes--- 動的な型生成と組み込み型の名前copy--- 浅いコピーおよび深いコピー操作pprint--- データの整形表示reprlib--- もう一つのrepr()の実装enum--- 列挙型のサポートgraphlib--- グラフ構造を操作する機能