会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
道友请留步W
首页
联系
订阅
管理
2022年5月7日
Python将函数动态绑定为对象的成员方法
摘要: import types class B: def __init__(self, x, y): self.x = x self.y = y def foo(self): pass def A(self): print(self.x) print("A function...") if __name_
阅读全文
posted @ 2022-05-07 08:58 道友请留步W
阅读(54)
评论(0)
推荐(0)
编辑
公告