def _import_module(name, package=None):
    """
    根据模块名载入模块
    :param name:
    :param package:
    :return:
    """
    if name.startswith('.'):
        name = '{package}.{module}'.format(package=package, module=str(name).strip('.'))
    __import__(name)
    return sys.modules[name]
def _import_module ( name , package = None ) : if name . startswith ( '.' ) : name = '{package}.{module}' . format ( package = package , module = str ( name ) . strip ( '.' ) ) __import__ ( name ) return sys . modules [ name ]
根据模块名载入模块
    :param name:
    :param package:
    :return: