如果一个文件 myfile.py
myfile.py
class A(object): # Some implementation class B (object): # Some implementation
我如何定义一个方法,以便 myfile.py文件 ,它返回
myfile.py文件
这里,A和B的返回值可以是类的名称或类的类型。
(i.e. type(A) = type(str) or type(A) = type(type))