课程
/后端开发
/Python
/python进阶
上次讲装饰器的时候@new_fn -->f1=new_fn(f1),那么在这个例子中@property是什么,怎么用的?
2017-03-04
源自:python进阶 6-7
正在回答
@property
def score(self, number):
return number
实际调用过程可还原为:obj = property(score(number))
understand?
hehehehehehehehe
举报
学习函数式、模块和面向对象编程,掌握Python高级程序设计
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号