python 怎么算矩阵每列的和
例子:mat=[[1,2,3],[10,20,30],[100,200,300]]list_sums_cols=addValuesInAllCols(mat)print(...
例子:
mat = [ [1,2,3], [10,20,30], [100,200,300] ]
list_sums_cols = addValuesInAllCols(mat)
print (list_sums_cols)
should produce the output:[111, 222, 333] 展开
mat = [ [1,2,3], [10,20,30], [100,200,300] ]
list_sums_cols = addValuesInAllCols(mat)
print (list_sums_cols)
should produce the output:[111, 222, 333] 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询