This post was updated 621 days ago and some of the ideas may be out of date.

使用 **,函数将参数以字典的形式导入

def Merge(dict1, dict2): 
    result = {**dict1, **dict2} 
    return result
      
# 两个字典
dict1 = {'a': 10, 'b': 8} 
dict2 = {'d': 6, 'c': 4} 
dict3 = Merge(dict1, dict2) 
print(dict3)