Python - Add Dictionary Items
پرش به ناوبری
پرش به جستجو
Adding Items
Adding an item to the dictionary is done by using a new index key and assigning a value to it:[۱]
Update Dictionary
The update()
method will update the dictionary with the items from a given argument. If the item does not exist, the item will be added.
The argument must be a dictionary, or an iterable object with key:value pairs.
منابع آموزشی