1.小数多维数组
import numpy as np
a = np.random.random((3,3))
print (a)
2.整数随机数组
import numpy as np
# a = np.random.randint(10,size=[3,3])
a = np.random.randint(0,10,size=[3,3])
print (a)
---------------------
原文:https://blog.csdn.net/u013533991/article/details/41923837