装饰器:
https://www.zhihu.com/question/26930016/answer/99243411
之前在python笔试的时候,经常会遇到@staticmethod、@classmethod和@property的用法和区别,这三个也是python的内置装饰器,所以再来总结下:
@staticmethod、@classmethod和@property:
装饰器:
https://www.zhihu.com/question/26930016/answer/99243411
之前在python笔试的时候,经常会遇到@staticmethod、@classmethod和@property的用法和区别,这三个也是python的内置装饰器,所以再来总结下:
@staticmethod、@classmethod和@property: