class DictToStruct: def __init__(self, **entries): self.__dict__.update(entries) struct = DictToStruct(**temp)
python 字典转对象
猜你喜欢
转载自blog.51cto.com/chenxiaolong/2154983
今日推荐
周排行