我有一个主数据字典,大致如下:{'UID': 'A12B4', 'name': 'John', 'email': 'hi@example.com}
我还有另一个字典,如下:{'UID': 'A12B4', 'other_thing: 'cats'}
我不清楚如何将这两个字典“合并”,以便将“other_thing”添加到主字典中。 我需要的是:{'UID': 'A12B4', 'name': 'John', 'email': 'hi@example.com, 'other_thing': 'cats'}
虽然我对此类综合理解方面还很陌生,但我的直觉告诉我,一定有一种简单直接的方法。