The way to understand the “axis” of numpy sum is that it collapses the specified axis. ... the axis 0 (the row), it becomes just one row (it sums column-wise).
確定! 回上一頁