I've looked through a few of the questions here and none of them seem to be exactly my problem. Say I have 2 dictionaries, and they are dict1
{'A': 25 , 'B': 41, 'C': 32}
and dict 2
{'A':21, 'B': 12, 'C':62}
I'm writing a program where I need to combine these to one dictionary finaldict
{'A': [25 , 21], 'B': [41, 12], 'C': [32, 62]}
Any help is much appreciated, I've been working on this and getting nowhere for a while now
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…