When axis = 0 we imply to sum it over columns only. For example, a = np.array([[1, 2, 3], [4, 5, 6]]) np.sum(a, axis = 0).
確定! 回上一頁