📜  .update python 代码示例

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

代码示例2
z = {1: 'One', 2: 'Two'}
x = {0: 'zero', 1: 'one'}
x.update(z) # adds anything new to the dict
print(x)
{0: 'zero', 1: 'One', 2: 'Two'}