【发布时间】:2011-08-26 14:56:04
【问题描述】:
我有很多这样的字典:
dict1 = {1:[1,2,3],2:[2,3,4]}
dict2 = {2:[3,4,5],3:[4,5,6]}
我需要得到
dict = {1:[1,2,3],2:[2,3,4,3,4,5],3:[4,5,6]}
# ^
# | order is unimportant
最好的方法是什么?
【问题讨论】:
标签: python dictionary