2024-09-23 17:44:34 +08:00

8 lines
96 B
Python

dict1 = {"a": {}}
dict2 = {"b": {}}
# 使用 update() 方法
dict1.update(dict2)
print(dict1)