python3动态import

func = eval("__import__('Signals').%s" % strategy_name)

df = func(df, para)  效果跟getattr一样~~

你可能感兴趣的:(python3动态import)