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