Open CHH3213 opened 2 years ago
import numpy as np a=np.random.random((3,3)) print a
import numpy as np a=np.random.randint(0,10,size=[3,3]) print a
1. 产生随机的小数多维数组
2. 产生多维的整数随机数组