データ型¶
この章で解説されるモジュールは日付や時間、型が固定された配列、ヒープキュー、両端キュー、列挙型のような種々の特殊なデータ型を提供します。
Python にはその他にもいくつかの組み込みデータ型があります。特に、 dict 、 list 、 set 、 frozenset 、そして tuple があります。 str クラスは Unicode データを扱うことができ、 bytes と bytearray クラスはバイナリデータを扱うことができます。
この章では以下のモジュールが記述されています:
datetime--- Basic date and time typeszoneinfo--- IANA time zone supportcalendar--- General calendar-related functionscollections--- Container datatypescollections.abc--- Abstract Base Classes for Containersheapq--- Heap queue algorithmbisect--- Array bisection algorithmarray--- Efficient arrays of numeric valuesweakref--- 弱参照types--- Dynamic type creation and names for built-in typescopy--- Shallow and deep copy operationspprint--- Data pretty printerreprlib--- Alternaterepr()implementationenum--- Support for enumerationsgraphlib--- Functionality to operate with graph-like structures