1.当方法需要传入别的参数时,不能定义成@property.
比如_table(self, owner)
1.当方法需要传入别的参数时,不能定义成@property.
比如_table(self, owner)
下一篇:su - 和su的区别
Artemis高级用法
环境背景:python @property classmethod staticmethod 用法
property: 在新式类中,将类的方法变成属性,方便调用
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M