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'>
posted @ 2018-07-28 15:51  月燕如  阅读(537)  评论(0编辑  收藏  举报