摘要: python的反射机制十分的常用,主要是字符串与模块应用之间的连接方法。核心是将字符串转换成可以调用模块、模块方法的变量。 主要包括了以下四个方法: hasattr(obj, name, /) Return whether the object has an attribute with the g 阅读全文
posted @ 2018-04-07 12:05 弓心 阅读(1386) 评论(0) 推荐(0) 编辑