首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
python父类调用子类了解一下
python父类调用子类了解一下
mac
2022-06-30
18
class B(): def __init__(self): pass def start(self): print(self.parse()) class A(B): def __init__(self): B.__init__(self) def parse(self): return 123 if __name__ == '__main__': a = A() a.start()
转载于:https://www.cnblogs.com/c-x-a/p/10477241.html
转载请注明原文地址: https://mac.8miu.com/read-67521.html
最新回复
(
0
)