例子:import random c = list(zip(a, b)) random.shuffle(c) a[:], b[:] = zip(*c) 黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/
c = list(zip(a, b))
random.shuffle(c)
a[:], b[:] = zip(*c)
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/