上一页 1 ··· 150 151 152 153 154 155 156 157 158 ··· 218 下一页
摘要: importlib模块: 可以根据字符串的形式导入模块 结合反射进行使用效果很好。 import importlib redis = importlib.import_module('Day-19') #相对路径即可 getattr(redis,'User')() #运行。 阅读全文
posted @ 2020-04-30 14:18 新兵蛋Z 阅读(225) 评论(0) 推荐(0)
上一页 1 ··· 150 151 152 153 154 155 156 157 158 ··· 218 下一页