用for循环实现
L=[1, 2, 3], [5, 3, 2], [7, 3, 2]
i=0
for i<3:
s=2*L[i][0]*L[i][1]+2*L[i][0]*L[i][2]+2*L[i][1]*L[i][2]
print (s)
为什么会出错呢
L=[1, 2, 3], [5, 3, 2], [7, 3, 2]
i=0
for i<3:
s=2*L[i][0]*L[i][1]+2*L[i][0]*L[i][2]+2*L[i][1]*L[i][2]
print (s)
为什么会出错呢
2021-01-20
举报