擅长:python、mysql、java
<p>{{1}从模块中动态检索{a1},然后使用该模块的名称^ 2动态检索:</p>
<pre><code>import importlib
def aFunctionImportingAndCallingAnotherFunction(functionName, args):
module = importlib.import_module(packageString)
func = getattr(module, functionname)
return func(*args)
</code></pre>