📜  沿轴求和 python 代码示例

📅  最后修改于: 2022-03-11 14:47:20.149000             🧑  作者: Mango

代码示例1
import numpy as np
matrix=np.ones((10,10))
print(matrix.sum(axis=0))
print(matrix.sum(axis=1))