- 博客(1)
- 收藏
- 关注
原创 关于类名直接调用实例方法
class FooParent(object): def __init__(self): self.parent = 'I\'m the parent.' print('Parent') def bar(self, message): print("%s from Parent" % message)class FooChild(FooParent): def __init__(self): # sup...
2022-01-13 20:07:58
2907
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人