python中的类型

python中的类型分为四种

1.整形

2.浮点型

3.字符串

4.对象(除了前三种,其他的都是对象)

比如函数也是对象

def fun():
    print(123)
type(fun)  //  <class 'function'>

  

原文地址:https://www.cnblogs.com/chaogechaoge/p/12993711.html