python 二维数组取值

a = np.ones((5,5))

可以通过 a[1,1] a[1][1] 这两种方式取出数值,本质上是一样的。