import importlib
from wxpython.Frame import MyFrame
aa = importlib.import_module('wxpython.Frame')
print aa.MyFrame()
断言:
assert type(obj.name) is int
import importlib
from wxpython.Frame import MyFrame
aa = importlib.import_module('wxpython.Frame')
print aa.MyFrame()
断言:
assert type(obj.name) is int
转载于:https://www.cnblogs.com/qiangayz/p/8596344.html