How do I extract all the values of a specific key from a list of dictionaries?

后端 未结 3 2053
悲哀的现实
悲哀的现实 2020-11-29 08:20

I have a list of dictionaries that all have the same structure within the list. For example:

test_data = [{\'id\':1, \'value\':\'one\'}, {\'id\':2, \'value\         


        
3条回答
提交回复
热议问题