python字典转对象

class DictToStruct:
    def __init__(self, **entries):
        self.__dict__.update(entries)
struct = DictToStruct(**temp)

网站题目:python字典转对象
网页链接:http://hbruida.cn/article/ppiico.html