例子: import random c = list(zip(a, b)) random.shuffle(c) a[:], b[:] = zip(*c) 转载于:https://www.cnblogs.com/huangshiyu13/p/6917789.html