Random choosing 2 dictionaries: with same value

前端 未结 0 574
终归单人心
终归单人心 2021-01-29 07:03

From a dictionary I wanna choose 2 dictionaries randomly who have their value[0] == \'C\'.

d = {"1": (\'B\', [3, 4, 8]), "2": (\'C\', [2, 6, 8         


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