python字典转对象
class DictToStruct: def __init__(self, **entries): self.__dict__.update(entries) struct = DictToStruct(**temp)
本文标题:python字典转对象
当前路径:http://pcwzsj.com/article/ppiico.html
class DictToStruct: def __init__(self, **entries): self.__dict__.update(entries) struct = DictToStruct(**temp)