Remove dictionary from list

前端 未结 7 1218
醉酒成梦
醉酒成梦 2020-12-04 14:32

If I have a list of dictionaries, say:

[{\'id\': 1, \'name\': \'paul\'},
 {\'id\': 2, \'name\': \'john\'}]

and I would like to remove the d

7条回答
  •  一生所求
    2020-12-04 14:47

    This is not properly an anwser (as I think you already have some quite good of them), but... have you considered of having a dictionary of : instead of a list of dictionaries?

提交回复
热议问题