type()

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

In [1]: name = "Tom"   

In [2]: type(name)
Out[2]: str

    

猜你喜欢

转载自www.cnblogs.com/pzk7788/p/10186582.html
今日推荐