我想将矩阵传递给函数(作为参数)但出现错误说
TypeError: list indices must be integers, not tuple
这是我的代码
def question_1_b(arr):
for i in range(4):
for j in range(4):
block[4*i+j] = arr[i,j]
return block
question_1_b([[70,52,13,67],[90,48,57,26],[43,45,67,89],[88,65,44,23]])