def my_func():
x = Loader.__get_classes_from_module("string","string") # this line causes an error
class Loader(object):
def get_tests(self, test_prefix="", tags=None, exclude=False):
# code here
@staticmethod
def __get_classes_from_module(f, prefix_class_name=None):
# code here
在上面的代码中,我收到一条错误,指出AttributeError:type object'Loader'没有属性'__get_classes_from_module'。我做错了什么?