合并dict,有以下几种方法:
1.常规遍历
d1 = {}
d2 = {}
d3 = {}
for k,v in d1.items():
d3[k] = v
for k,v in d2.items():
d3[k] = v
2.items 相加法
d3 = dict(d1.items() + d2.items())
剩余其他方法,可参照:https://blog.csdn.net/Jerry_1126/article/details/73017270
标签:python,items,合并,dict,d2,d3,d1 From: https://www.cnblogs.com/dannyyao/p/16881195.html