用numpy生成随机多维数组
随机生成小数
import numpy as np
a = np.random.random(3)
b = np.random.random((3,,3))
c = np.random.random((3,3,3))
随机生成整数
import numpy as np
x = np.random.randint(0,10,3)
y = np.random.randint(0,10,(3,3))
z = np.random.randint(0,10,(3,3,3))