The modules described in this chapter provide a variety of specialized data types such as dates and times, fixed-type arrays, heap queues, synchronized queues, and sets.
Python also provides some built-in data types, in particular,
dict
,
list
,
set
and
frozenset
,和
tuple
。
str
class is used to hold Unicode strings, and the
bytes
class is used to hold binary data.
本章文档化了以下模块:
datetime
— 基本日期 时间类型
calendar
— 一般日历相关函数
collections
— 容器数据类型
collections.abc
— 容器抽象基类
heapq
— 堆队列算法
bisect
— 数组二分算法
array
— 高效数值数组
weakref
— 弱引用
types
— 动态类型创建和内置类型名称
copy
— 浅拷贝和深拷贝操作
pprint
— 数据美化打印机
reprlib
— 替代
repr()
实现
enum
— 支持枚举