python字典转对象

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

新闻标题:python字典转对象
分享网址:http://dvlbo.com/article/ppiico.html