python字典转对象
class DictToStruct: def __init__(self, **entries): self.__dict__.update(entries) struct = DictToStruct(**temp)
文章题目:python字典转对象
文章地址:http://scgulin.cn/article/ppiico.html
class DictToStruct: def __init__(self, **entries): self.__dict__.update(entries) struct = DictToStruct(**temp)