object是最顶层基类
object是type的实例,而type又继承object
type是自身的实例
>>> class Student:
... pass
...
>>> type(Student)
<class 'type'>
>>> type.__bases__
(<class 'object'>,)
>>> object.__bases__
()
>>> type(object)
<class 'type'>
>>>
>>> class Student:
... pass
...
>>> type(Student)
<class 'type'>
>>> type.__bases__
(<class 'object'>,)
>>> object.__bases__
()
>>> type(object)
<class 'type'>
>>>
转载于:https://www.cnblogs.com/raind/p/10099363.html