摘要: 一、类的描述符 1、property :把装饰的一个方法伪装成一个属性,对属性进行查、改、删 #装饰器返回年纪 import time class Person: def __init__(self,name,birth): self.name = name self.birth = birth @ 阅读全文
posted @ 2019-04-01 22:09 独角兕大王 阅读(213) 评论(0) 推荐(0)