1、getattr2、setattr,3、delattr 1、getattrclass Mydict(dict): def __init__(self,value): self.value = value def __getattr__(self, item): return "can not find"if __name__ == '__main__': ret = Mydict(10) print(ret.value) print(ret.name) 2、setattr, 3、delattr