Data Types数据类型

The modules described in this chapter provide a variety of specialized data types such as dates and times, fixed-type arrays, heap queues, double-ended queues, and enumerations.本章中描述的模块提供了各种专用数据类型,如日期和时间、固定类型数组、堆队列、双端队列和枚举。

Python also provides some built-in data types, in particular, dict, list, set and frozenset, and tuple. Python还提供了一些内置的数据类型,特别是dictlistsetfrozenset以及tupleThe str class is used to hold Unicode strings, and the bytes and bytearray classes are used to hold binary data.str类用于保存Unicode字符串,bytesbytearray类用于保存二进制数据。

The following modules are documented in this chapter:本章记录了以下模块: