问题描述
我需要从位于不同 py 文件中的父类调用损坏的子函数。正确的做法是什么?
parent.py:
from child import B
class A(object):
def methoda(self):
print("This is parent")
def discover_secret_child(self):
child = B.__secret_child()
return child
child.py:
from parent import A
class B(A):
def __child_method(self):
print("Secret child")
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)