当前位置:主页 > 软件编程 > Python代码 >

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

时间:2021-04-09 09:02:22 | 栏目:Python代码 | 点击:

如下所示:

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

您可能感兴趣的文章:

相关文章