Python 内置数据类型
内置数据类型
在编程中,数据类型是一个重要的概念。
变量可以存储不同类型的数据,不同的类型可以做不同的事情。
默认情况下,Python 在这些类别中内置了以下数据类型:
| 文本类型: | str |
| Numeric Types: | int, float,
complex |
| Sequence Types: | list, tuple,
range |
| Mapping Type: | dict |
| Set Types: | set, frozenset |
| Boolean Type: | bool |
| Binary Types: | bytes, bytearray,
memoryview |

