Python内置数据类型(Built-in Types)

1.文本类型(Text Type)

  • 字符串(str)

2.数值类型(Numeric Types)

  • 整数(int)
  • 浮点数(float)
  • 复数(complex)

3.序列类型(Sequence Types)

列表(list)

元组(tuple)

(range)

4.映射类型(Mapping Type)

字典(dict)

5.集合类型(Set Types)

(set)

(frozenset)

6.(Boolean Type)

(bool)

7.二进制类型(Binary Types)

(bytes)

(bytearray)

()

8.空类型(None Type)