import numpy as np arr = np.arange(10) np.random.shuffle(arr) print(arr)输出: [2 4 0 1 8 7 3 6 5 9]多维矩阵中,只对第一维(行)做打乱顺序 ...
確定! 回上一頁