题解 | #牛牛的矩阵相加#
牛牛的矩阵相加
https://www.nowcoder.com/practice/730b90507602412fac90a3f106bfa0cd
matrix = [[1,2,3],[4,5,6],[7,8,9]] num = int(input()) def count(x: list): newlist =[] for i in x: newlist.append(i*num) return newlist print(list(map(count,matrix)))