Create a list comprehension from a dictionay

后端 未结 0 730
清歌不尽
清歌不尽 2020-12-05 04:22

Is it possible to create a list comprehension for the below for loop?

for key, value in some_dict.items():
   if my_value in value:
      my_new_var = value[\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题