狒狒 · 2008-12-29 10:46:35 · 阅读: 352 模块级别的用__import__,模块内部的可以用__getattr__或者getattr 通过m=__import__(str)获得一个模块的句柄,然后m.func()调用