有没有分别显示之后,在显示三个表面积之和
L=[[1, 2, 3], [5, 3, 2], [7, 3, 2]]
for c in L:
lenght=c[0]
width=c[1]
height=c[2]
s=2*lenght*width+2*lenght*height+2*width*height
print(s)
L=[[1, 2, 3], [5, 3, 2], [7, 3, 2]]
for c in L:
lenght=c[0]
width=c[1]
height=c[2]
s=2*lenght*width+2*lenght*height+2*width*height
print(s)
2024-09-05
举报