np.sum. import numpy as np a = np.array([[0, 2, 1], [3, 5, 6], [0, 1, 1]]) print(a) b = np.sum(a, axis=0) # 一列相加,不保持二维特性c = np.sum(a, ...
確定! 回上一頁