Python3字典update()方法时间:2023-03-10 05:23:38 描述 Python字典update()函数把字典参数dict2的key/value(键/值)对更新到字典dict里。 update()方法语法: dict.update(dict2) 参数 dict2 -- 添加到指定字典dict里的字典 返回值 该方法没有任何返回值 实例: