小飞侠带你精通Python网络编程系列04-Python内置的数据类型

python学习网 2018-11-14 16:51:02

在Python中有以下几种标准的内置数据类型:

1.None: The Null object--空对象
     None是Python的特殊类型,表示一个空对象,值为None
2.Numerics(数值): int-整数, long-长整数, float-浮点数, complex-复数, and     bool--布尔值 (The subclass of int with True or False value)
3.Sequences(序列): str-字符串, list-列表, tuple-元组, and range-范围
4.Mappings(映射): dict-字典
5.Sets(集合): set-可变集合 and frozenset-不可变集合

阅读(1267) 评论(0)