摘要: importlib模块 import importlib根据这个字符串来导入这个模块的 a=importlib.import_module('xx.oo')print(a.Person())里面可以传参数进去 这个上面就相当于from xx import oo后面就是实例化这个这个person这个类 阅读全文
posted @ 2018-10-06 21:34 风不再来 阅读(140) 评论(0) 推荐(0) 编辑