为啥报错,帮我解答一下
# Enter a code L = [[1, 2, 3], [5, 3, 2], [7, 3, 2]] x = 0 while x < 3: S = 1 for a in L: for b in a: if a.index(b) == x S = S * b print(S) x += 1
# Enter a code L = [[1, 2, 3], [5, 3, 2], [7, 3, 2]] x = 0 while x < 3: S = 1 for a in L: for b in a: if a.index(b) == x S = S * b print(S) x += 1
2024-04-30
举报