Python3字典update()方法

描述

Python字典update()函数把字典参数dict2的key/value(键/值)对更新到字典dict里。

update()方法语法:

dict.update(dict2)

参数

dict2 -- 添加到指定字典dict里的字典

返回值

该方法没有任何返回值

扫描二维码关注公众号,回复: 8206169 查看本文章

实例

猜你喜欢

转载自www.cnblogs.com/elitphil/p/12047981.html
今日推荐