python 学习 类型

大概有这样几种类型:

类型    实例

NoneType: None

int    :   3

float   :  4.5

bool   : False,True

tuple      : (2,)

list   :[2,]

dict    :{2:4}

function  :def b():

       print("haha")

class   :class a:

当然所有的类型都属于类

原文地址:https://www.cnblogs.com/lifeisshort/p/4883533.html