有 a,b,c,d,e,f 6名球员,他们在三轮比赛中的进球数用 s1,s2,s3 3个字典表示,找到每轮都有进球的球员? 创建 s1,s2,s3 3个字典素材 from random import randint,sample s = 'abcdef' s1 = {x: randint(3,4) for x in sample(s,randint(4,6))} s2 = {x: randint(3,4) for x in sample(s,randint(4,6))} s3 = {x: ran