python 随机分配比赛队伍

team = ['周五就是浪', '欢迎来到对抗路', '起飞队', '干饭队', '十三大队', '复活队']
n = 2
[team[i:i+n] for i in range(0, len(team), n)]
image.png

猜你喜欢

转载自blog.csdn.net/qq_41236493/article/details/115860375
今日推荐