通过字符串导入模块

import importlib
ret = importlib.import_module('模块字符串')

 

posted @ 2018-11-09 15:36  梁颖666  阅读(129)  评论(0)    收藏  举报