会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
QianweiZ
博客园
首页
新随笔
联系
订阅
管理
2018年6月8日
python面向对象高级编程
摘要: 1.绑定方法 给所有实例都绑定方法,可以给class绑定方法: >>> def set_score(self, score): ... self.score = score ... >>> Student.set_score = set_score 给class绑定方法后,所有实例均可调用。 2.使
阅读全文
posted @ 2018-06-08 10:49 QianweiZ
阅读(153)
评论(0)
推荐(0)
公告