NumPy axis参数 axis 决定二维数据沿哪个方向计算。 axis理解None全部元素一起算0按列算1按行算 它常出现在 np.mean()、np.sum() 等函数里。 相关:NumPy数组、二维数据与DataFrame