python中的类型

python中的类型分为四种

1.整形

2.浮点型

3.字符串

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

比如函数也是对象

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

  

posted @ 2020-05-30 17:08  。。天空之城。。  阅读(276)  评论(0编辑  收藏  举报