题解 | #牛牛的矩阵相加#
牛牛的矩阵相加
https://www.nowcoder.com/practice/730b90507602412fac90a3f106bfa0cd
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] n = int(input()) for i in matrix: for j in range(len(i)): i[j] *= nprint(matrix) print(matrix)
牛牛的矩阵相加
https://www.nowcoder.com/practice/730b90507602412fac90a3f106bfa0cd
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] n = int(input()) for i in matrix: for j in range(len(i)): i[j] *= nprint(matrix) print(matrix)
相关推荐