对于二维数组
shape:(3,4)
对应到我们常见的平面坐标系里来:
axis0 —> 行 ; 对应于shape里的第1个元素
axis1 —> 列; 对应于shape里的第2个元素
In a NumPy array, axis 0 is the first axis. In a multi-dimensional NumPy array, axis 1 is the second axis.
对于三维数组
对应到三维立体坐标
axis0 —> 深度(z)
axis1 —> 行(y)
axis2 —> 列(x)
https://www.w3resource.com/python-exercises/numpy/index-array.php