摘要: # pcjclass Animal(): def eat(self): print("吃") def run(self): print("跑") def sleep(self): print("睡") def drink(self): print("喝")class Dog(Animal):#Dog 阅读全文
posted @ 2019-07-23 22:47 零度雨的BLOGS 阅读(141) 评论(0) 推荐(0) 编辑
摘要: # pcjclass Dog(object): def __init__(self,name): self.name=name def run(self): print("%s只会普通的玩"% self.name)class XiaoTiaoDog(Dog): def run(self): prin 阅读全文
posted @ 2019-07-23 22:45 零度雨的BLOGS 阅读(196) 评论(0) 推荐(0) 编辑