甲队为a,b,c三人,乙队为x,y,z三人。已抽签决定比赛名单,如何找出每个人的对战选手
if __name__ == '__main__':
w = [(i, j, k) for i in ['x', 'y', 'z'] for j in ['x', 'y', 'z'] for k in ['x', 'y', 'z']
if i != j and j != k and i != k and i != 'x' and k not in ('x', 'z')]
print('order is a -- %s\t b -- %s\tc--%s' % w[0])
赞0
踩0