python 生成嵌套字典
import collections import json tree=lambda:collections.defaultdict(tree) some_dict=tree() some_dict['colours']['favourite']='yellow' print(json.dumps(some_dict))
每天扫一扫,到店付款省钱!
动动小手支持一下作者,谢谢🙏
import collections import json tree=lambda:collections.defaultdict(tree) some_dict=tree() some_dict['colours']['favourite']='yellow' print(json.dumps(some_dict))
动动小手支持一下作者,谢谢🙏