有两个这样的字典,两个字典有相同的键但不同的值。
/* dictionary 1 */
paramDict1 {
payAmount = 1000;
payType = 1;
}
/* dictionary 2 */
paramDict2 {
payAmount = 2000;
payType = 2;
}
I hope merge them to one dictionary like
paramDict {
payAmount = 1000;
payType = 1;
payAmount = 2000;
payType = 2;
}
Could you tell me how to do? Thanks.