hasattr(obj,attr) 判断前面是否有后面的属性

hasattr(obj,attr)

判断前面是否有后面的属性

posted @ 2017-05-04 23:24  道高一尺  阅读(445)  评论(0编辑  收藏  举报