A=[[1,2,3],[4,5,6],[7,8,9]] B=[[2,3,4],[5,6,7],[8,9,1]] C=[[0,0,0],[0,0,0],[0,0,0]] for i in range(3): for j in range(3): # C[i][j]=0 for k in range(3): C[i][j]+=A[i][k]*B[k][j] print(C)
qq59043568cf0cd ©著作权
A=[[1,2,3],[4,5,6],[7,8,9]] B=[[2,3,4],[5,6,7],[8,9,1]] C=[[0,0,0],[0,0,0],[0,0,0]] for i in range(3): for j in range(3): # C[i][j]=0 for k in range(3): C[i][j]+=A[i][k]*B[k][j] print(C)
上一篇:Docker数据挂载
目录 &
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M