摘要: dd = __import__("test") #这里动态调用了一个模块def aa(ss): print(ss+"666666666666") 方法1#使用eval的方式eval("l")("hhhhhh") #直接把方法和参数连起来写,即可,调用l是方法 方法2#采用反射的方式l=getattr 阅读全文
posted @ 2018-08-06 15:55 广目天王 阅读(515) 评论(0) 推荐(0)