Adding dictionaries together, Python [duplicate]

This question already has an answer here:

I have two dictionaries and I'd like to be able to make them one:

Something like this pseudo-Python would be nice:

dic0 = {'dic0': 0}
dic1 = {'dic1': 1}

ndic = dic0 + dic1
# ndic would equal {'dic0': 0, 'dic1': 1}
88
задан rectangletangle 14 May 2011 в 22:04
поделиться