type()

type() 用于查看一个对象的类型

In [4]: type("hello")
Out[4]: str

In [5]: type(123)    
Out[5]: int

 

 

 

 

 

 

    

posted @ 2018-12-27 18:26  孔雀东南飞  阅读(180)  评论(0编辑  收藏  举报