会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
磐正
博客园
首页
新随笔
联系
管理
订阅
2022年1月22日
python常用语法
摘要: @property是一个装饰器,它能够使得类把一个方法变成属性调用的。 class Test: def __init__(self): print("I'm doing the test!") score=60 def getScore(self): return self.score @prope
阅读全文
posted @ 2022-01-22 22:01 磐正
阅读(69)
评论(1)
推荐(0)
公告