摘要: python提供的内置装饰器——staticmethod、classmethod和property 在OSQA中,@property的使用频率是非常高的。下面就是它的使用方法: @property 可以将python定义的函数“当做”属性访问,从而提供更加友好访问方式,和java中的setter和g 阅读全文
posted @ 2020-09-18 15:46 一只小泡沫 阅读(225) 评论(0) 推荐(0) 编辑