会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dreamfor
首页
管理
2016年2月19日
Python绑定方法,未绑定方法,类方法,实例方法,静态方法
摘要: >>> class foo(): clssvar=[1,2] def __init__(self): self.instance=[1,2,3] def hehe(self): print 'haha' >>> foo.hehe <unbound method foo.hehe> >>> a=foo
阅读全文
posted @ 2016-02-19 13:50 dreamfor
阅读(2174)
评论(0)
推荐(0)