2013年5月24日
摘要: getattr(object, name[, default]) -> valueGet a named attribute from an object; getattr(x, 'y') is equivalent to x.y. When a default argument is given, it is returned when the attribute doesn't exist; without it, an exception is raised in that case 阅读全文
posted @ 2013-05-24 17:15 语辰 阅读(153) 评论(0) 推荐(0) 编辑