python中的@property

1.使该方法变为属性

2.使该方法不能被修改。

 

 

 

 

 如有不对还请指正。

posted @ 2022-10-19 14:01  嘚惹  阅读(15)  评论(1编辑  收藏  举报