python怎么输出矩阵

如题所述

第1个回答  2023-11-05
1、直接用列表生成m行n列的矩阵m,n等于map(int,input)。
2、采用numpya生成想要维度的矩阵importnumpyasnp。