Python3 Dictionary update () method

description

Python dictionary update () function of the dictionary items dict2 key / value (key / value) to update the dictionary in dict.

 

update () method syntax:

dict.update(dict2)

 

parameter

dict2 - added to the designated dictionary in the dictionary dict

 

return value

This method does not have any return value

Examples :

Guess you like

Origin www.cnblogs.com/elitphil/p/12047981.html