假设我有这个:
[ {"name": "Tom", "age": 10}, {"name": "Mark", "age": 5}, {"name": "Pam", "age": 7} ]
并通过搜索"Pam"作为名称,我想检索相关字典:{name:"Pam",年龄:7}
怎么做到这一点?
python search dictionary
dictionary ×1
python ×1
search ×1