python之type

>>> isinstance(object,type)
True
>>> isinstance(list,type)
True
>>> isinstance(list,object)
True
>>> isinstance(dict,object)
True
>>> issubclass(object,type)
False
>>> issubclass(dict,object)
True
>>> issubclass(list,object)
True
>>>
上一篇:SZU:A66 Plastic Digits


下一篇:C++ 系列:虚函数