Delete dictionary values if they are present in a set

后端 未结 0 1982
[愿得一人]
[愿得一人] 2021-01-25 10:55

I have a Python set

A = {34, 4, 7, 39, 40, 13, 18, 20}

and a dictionary

B = 4: [6, 34, 39], 7: [18, 34], 13: [6, 18, 34], 18: [7,          


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