摘要: @property是一个装饰器,它能够使得类把一个方法变成属性调用的。 class Test: def __init__(self): print("I'm doing the test!") score=60 def getScore(self): return self.score @prope 阅读全文
posted @ 2022-01-22 22:01 磐正 阅读(69) 评论(1) 推荐(0)