python字典转对象
class DictToStruct: def __init__(self, **entries): self.__dict__.update(entries) struct = DictToStruct(**temp)
新闻名称:python字典转对象
本文路径:http://azwzsj.com/article/ppiico.html
class DictToStruct: def __init__(self, **entries): self.__dict__.update(entries) struct = DictToStruct(**temp)