weixin_慕码人1570906
2024-04-30 13:44
# 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
错误1:if
a.index(b)
=
=
x的右边少了1个冒号“:”
错误2:
S
=
S
*
b没有向右缩进4个字符
Python3 入门教程(新版)
154164 学习 · 1075 问题
相似问题