0

我的任务是将这段代码转换为一行,但我真的不知道该怎么做。我找不到任何可以解决这个问题的东西。

这是代码:

def rowsub(mat, row1, row2, factor):
   for i in range(len(mat[row2])):
      mat[row2][i] -= factor * mat[row1][i]

我知道它在任何方面都没有帮助,但那是我的任务。如果有人可以帮助我会很高兴

我使用python 3.7

4

0 回答 0