首先说明python3中无论写不写(object),默认的会自动带上,所以在python3中写不写都一样
class Student1:
pass
class Student2(object)...__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init..._', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str...__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init...,因为上边的属性,我们都要使用,所以一般是继承的。