老是报错,提示x=[0]有问题
L = [[1, 2, 3], [5, 3, 2], [7, 3, 2]]
for a in L:
for b in a:
x=b[0]
y=b[1]
z=b[2]
c=x*y*2+x*z*2+y*z*2
print c
L = [[1, 2, 3], [5, 3, 2], [7, 3, 2]]
for a in L:
for b in a:
x=b[0]
y=b[1]
z=b[2]
c=x*y*2+x*z*2+y*z*2
print c
2021-09-25
举报