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

hasattr(obj,attr)

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

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