摘要: 1、getattrclass F: def __init__(self, name): self.name = name def show(self): return self.nameobj = F('tom')s = getattr(obj, 'name')r = getattr(obj, 's 阅读全文
posted @ 2019-12-18 09:23 菜菜_包包 阅读(308) 评论(0) 推荐(0) 编辑