Python报错之TypeError: only size-1 arrays can be converted to Python scalars
先上代码importmathimportnumpyasnpimportrandoma=np.zeros((10,3,4))foriinrange(10):forjinrange(4):a[i,0,j]=random.uniform(0,1)a[i,1,j]=random.uniform(0,1)a[i,2,j]=random.uniform(0,1)a=[((1-math.exp(-1))/2)*