Article directory
dictionary merge
In Python, we often encounter situations where several dictionaries need to be merged into one dictionary. Today, we will record several methods of merging dictionaries.
- Suppose we have a list that contains several dictionaries, as follows
dict_list = [
{
'1': 1,
'2': 2,