📜  合并多个字典 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:00.880000             🧑  作者: Mango

代码示例1
dict1 = {"a":1, "b":2}
dict2 = {"x":3, "y":4}
merged = {**dict1, **dict2}
print(merged) # {'a': 1, 'b': 2, 'x': 3, 'y': 4}