7-5 Merging two dictionaries (10 分)
First enter two dictionaries in two lines, then Merging two dictionaries into one.If two dictionaries have the same key, the corresponding values are added together to form a new value for that key in the dictionary. The data of the key and value of the dictionary is always numeric.
Input Format:
Output Format:
Output the merged dictionary in increasing order of keys.
Sample Inputs1:
{1:2,3:9,5:2,6:2}
{2:1,6:3,7:9,1:4}
结尾无空行
Sample Output1:
{1: 6, 2: 1, 3: 9, 5: 2, 6: 5, 7: 9