方法一: np.random.shuffle (无返回值,直接将原数组重新随机排序) state = np.random.get_state() np.random.shuffle(train) np.random.set_state(state) np.random.shuffle(label) 方法二: 返回一个打乱的index列表,可