22智能在线
新记
python中怎样对多维数组的某一维求和,放在新的数组中
如题所述
举报该文章
其他看法
第1个回答 2017-08-08
a = [[1, 2, 3], [4, 5, 6]]
new_a = [sum(i) for i in a]
相似回答
大家正在搜
相关问题
python中怎样对多维数组的某一维求和,放在新的数组中
python中怎么表示多维数组
python中怎样对多维数组的某一维求和,放在新的数组中
python中怎样对多维数组的某一维求和,放在新的数组中
python中怎样对多维数组的某一维求和,放在新的数组中
python中怎样对多维数组的某一维求和,放在新的数组中
python中怎样对多维数组的某一维求和,放在新的数组中
python怎么操作多维数组元素