1. # 重写
    2. # super 函数调用重写前的父类方法
    3. class Person(object):
    4. def say_hello(self):
    5. print("say hello")
    6. class Chinese(Person):
    7. def say_hello(self):
    8. super().say_hello()
    9. print("吃了吗")
    10. chinese = Chinese()
    11. chinese.say_hello()