摘要: 多态: 对象可以通过他们共同的属性和动作来访问,而不需要考虑他们的类多态是继承的应用 class H2o: def __init__(self,temp): self.temp=temp def htype(self): if self.temp<=0: print('结冰') if self.te 阅读全文
posted @ 2020-10-15 21:43 克莱比-Kirby 阅读(144) 评论(0) 推荐(0)