# 重写# super 函数调用重写前的父类方法class Person(object): def say_hello(self): print("say hello")class Chinese(Person): def say_hello(self): super().say_hello() print("吃了吗")chinese = Chinese()chinese.say_hello()