class Preson(object): pass class Student(Preson): pass class Teacher(Preson): pass class SkillMixin(object): pass class Bstudent(Basketball,Student): pass class Fteacher(Fotball,Teacher): pass print(s.skill()) print(t.skill())
当子类没有def who(self)函数 此时可以使用父类的def who(self)函数 如果子类本身有就不用了
?什么意思?