会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
stacy_hu
博客园
首页
新随笔
联系
订阅
管理
2019年5月18日
python学习——面向对象高级编程
摘要: 给类/实例动态绑定方法 from types import MethodType class Student(object): pass def set_age(self, age): self.age = age def set_score(self, score): self.score = s
阅读全文
posted @ 2019-05-18 22:04 stacy_hu
阅读(151)
评论(0)
推荐(0)
编辑
公告