最佳答案
有没有办法从另一个类调用一个类的方法?我正在寻找像 PHP 的 call_user_func_array()的东西。
这是我想要发生的:
class A:
def method1(arg1, arg2):
...
class B:
A.method1(1, 2)