python3.6的数据类型
标准数据类型
Python 3 中有六个标准的数据类型:
- Number (数字)
- String (字符串)
- LIst (列表)
- Tuple (元祖)
- Sets (集合)
- Dictionary (字典)
Number (数字)
Python 3 支持 int、float、bool、complex(复数)。
在Python 3 里 , 只有一种整数类型 int ,表示为长整型,没有Python 2 中的long。
None的类型为:
print(type(None)) #return <class 'NoneType'>
人不可无方向

浙公网安备 33010602011771号