小编Abr*_*hih的帖子

如何删除列表中的整个字典?

mylist = [{"a" : 1, " b" : 2}, {"c" : 1, "d" :2}]
Run Code Online (Sandbox Code Playgroud)

我的清单就是这样的.我如何删除包含密钥'a'的整个字典?

python dictionary list-comprehension dictionary-comprehension

1
推荐指数
1
解决办法
124
查看次数