How to filter dictionary keys based on its corresponding values

前端 未结 6 1088
南笙
南笙 2021-01-30 04:50

I have:

dictionary = {\"foo\":12, \"bar\":2, \"jim\":4, \"bob\": 17}

I want to iterate over this dictionary, but over the values instead of the

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