189 8069 5689

python字典转对象

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

本文题目:python字典转对象
地址分享:http://cdxtjz.cn/article/ppiico.html

其他资讯