面向对象 继承
摘要:
class Cat: def __init__(self,name): self.name = name def call(self): print('喵喵叫') def eat(self): print('%s吃' % self.name) def drink(self): print('%s喝' 阅读全文
posted @ 2018-06-29 19:59 liangliang123456 阅读(121) 评论(0) 推荐(0) 编辑