🌈 搜索
📅  最后修改于: 2022-03-11 14:47:20.149000             🧑  作者: Mango
import numpy as np matrix=np.ones((10,10)) print(matrix.sum(axis=0)) print(matrix.sum(axis=1))