摘要: property是一个装饰器,可以在类中装饰在函数上,主要作用是对类中的添加,删除,更改做隐藏操作 原先操控添加,删除,更改一个被封装的属性 class EGG: __count=0 def get_count(self): return self.__count def set_count(sel 阅读全文
posted @ 2021-01-26 14:58 SH金刚狼 阅读(145) 评论(0) 推荐(0) 编辑