'''类的继承'''
class Animal:
    def eat(self):
        print('eat')
    def drink(self):
        prink('drink')
    def run(self):
        print('run')
    def sleep(self):
        print('sleep')

wangcai = Animal('旺财')
wangcai.eat()
wangcai.drink()
