class Dog:
    """这是一个狗类"""
    def eat(self):
        print("%s 爱吃骨头" % self.name)
    def drink(self):
        print("小狗在喝水")
tom = Dog()
tom.name = 'Tom'
tom.eat()
jack = Dog()
jack.name = 'Jack'
jack.eat()
