PHP
·
发表于 5年以前
·
阅读量:8290
>>> type({4,6,1})
<class 'set'>
>>> type({'a':[1,2,3],'b':[4,5,6]})
<class 'dict'>
>>> class Student():
def __init__(self,id,name):
self.id = id
self.name = name
>>> type(Student('1','xiaoming'))
<class '__main__.Student'>