i = 0.8
while i <2:
temp= []
d = np.random.choice([3,i],size = 10, replace=True,p =[0.5,0.5])
temp.append(d)
i+= 0.1
我想要把每次循环创建的数组纵向合并,为什么这个temp只有一个数组出来, 求解答!
i = 0.8
while i <2:
temp= []
d = np.random.choice([3,i],size = 10, replace=True,p =[0.5,0.5])
temp.append(d)
i+= 0.1
我想要把每次循环创建的数组纵向合并,为什么这个temp只有一个数组出来, 求解答!