type()

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

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

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

    

原文地址:https://www.cnblogs.com/pzk7788/p/10186582.html