4队双循环赛制
teams = [“a”,“b”,“c”,“d”]
count = 0
for i in range(len(teams)):
for j in range(len(teams)):
if j == i:
continue
else:
count += 1
print("(主场)" + str(teams[i]) + " vs (客场)" + str(teams[j]))
print(“4支球队在双循环赛制下总共打”+str(count)+“场比赛”)
teams = [“a”,“b”,“c”,“d”]
count = 0
for i in range(len(teams)):
for j in range(len(teams)):
if j == i:
continue
else:
count += 1
print("(主场)" + str(teams[i]) + " vs (客场)" + str(teams[j]))
print(“4支球队在双循环赛制下总共打”+str(count)+“场比赛”)
相关推荐