多次元配列の場合は、最初の軸(axis=0)に沿って並べ替えます。 In [2]:. arr = np.arange(9).reshape((3, 3)) np.random.shuffle(arr) arr. Out[2]:.
確定! 回上一頁