题解 | #矩阵乘法#
矩阵乘法
http://www.nowcoder.com/practice/ebe941260f8c4210aa8c17e99cbc663b
感觉写的还不错
x = int(input()) y = int(input()) z = int(input()) A = [] B = [] for i in range(x): A.append(list(map(int,input().split(' ')))) for i in range(y): B.append(list(map(int,input().split(' ')))) C = [] for i in range(x): C.append([]) for j in range(z): result = 0 for k in range(y): result += A[i][k]*B[k][j] C[i].append(result) for i in C: print(*i)