import numpy as np >>> a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>> np.random.shuffle(a) >>> print(a) [[7 8 9] [4 5 6] [1 2 3]].
確定! 回上一頁