会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
笨笨侠
博客园
首页
新随笔
联系
管理
订阅
2018年1月19日
面向对象相关内置函数
摘要: 一、property属性 from math import pi class Circle: def __init__(self,r): self.r = r @property def perimeter(self): return 2*pi*self.r @property def area(s
阅读全文
posted @ 2018-01-19 19:38 笨笨侠
阅读(130)
评论(0)
推荐(0)
公告