#父亲类classfather():defspeak(self):print("I can speak")#单继承:class子类(父亲)#儿子类classson(father):pass#母亲类classmother():defwrite(self):print("I can write")#多继承#女儿类classdaugther(father,mother):deflisten(self):print("I can listen")#重载:(重载)#小儿子类classson2(father):defspeak(self):print("I can speak2")