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