html tool

2018年11月14日星期三

python dictA + dictB



http://www.runoob.com/python/att-dictionary-update.html

【popexizhi: 这个可以完成 a = a + b 的功能】
Python 字典(Dictionary) update() 函数把字典dict2的键/值对更新到dict里。

语法

update()方法语法:
dict.update(dict2)

没有评论:

发表评论