摘要: class Demo: def __init__(self, x, y, z): self.x = x self.y = y self.z = z @property def all_sum(self): # 方法转属性 return self.x + self.y +self.z def __lt 阅读全文
posted @ 2019-12-05 01:06 就是想学习 阅读(1196) 评论(0) 推荐(0)