新类都是Type 类型的实例
判断对象是否是类类型,看是否是type 的类型
>>> class B(object):
... pass
...
>>> isinstance(B,type)
True
>>> class C:
... pass
...
>>> isinstance(C,type)
False
>>>
>>> isinstance(B,type)
True
>>> isinstance(B(),type)
False
>>> type(B)
<type 'type'>
>>> type(B())
<class '__main__.B'>
>>>