groups=( (78,150,90,102,110,141), #第一组 (149,88,132,95,108,112,143), #第二组 (100,123,125,99,106,118,133), (152,86,132,95,70,122,149,124), ) def passList(l,lowLimit): passL=[] for i in l: if i >=lowLimit: passL.append(i) return passL lowLimit=142 print('获得初赛资格的成绩') for i in range(len(groups)): print('第%d组:'%(i+1),end='\t') for j in passList(groups[i],lowLimit): print(j,end=' ') print()