会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码如诗
小楼一夜听春雨
博客园
首页
新随笔
联系
订阅
管理
2016年10月20日
python中的实例方法、静态方法、类方法、类变量和实例变量
摘要: class MyTest: myname = 'peter' # add a instance attribute def __init__(self, name): self.name = name # class access class attribute def sayhello(self)
阅读全文
posted @ 2016-10-20 01:48 小 楼 一 夜 听 春 雨
阅读(44350)
评论(2)
推荐(2)
公告