Python中对数组集进行按行打乱shuffle

import numpy as np
y1=np.random.randint(2,10,(5,3))
print ("排序列表:", y1)
np.random.shuffle(y1)
print ("随机排序列表:", y1)

猜你喜欢

转载自blog.csdn.net/zsc201825/article/details/81707034