Python 求两个矩阵相加
def matrix_add(matrix1,matrix2): total_element = [] new_matrix = [] total_element = [matrix1[i][j] + matrix2[i][j] for i in range(len(matrix1)) for j in range(len(matrix1))] new_matr...