#矩阵运算
#求一个3*3矩阵主对角线元素之和
a = []
sum = 0.0
for i in range(3):
a.append([])
for j in range
python矩阵运算,求一个3*3矩阵主对角线元素之和
最新推荐文章于 2024-07-20 02:22:08 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#矩阵运算
#求一个3*3矩阵主对角线元素之和
a = []
sum = 0.0
for i in range(3):
a.append([])
for j in range