for循环求和,为什么这两种输入形式都是错误的??请大家帮忙...
for循环求和,为什么这两种输入形式都是错误的??求指导,,
L=[95,86,74,63] sum=0.0 for a in L: sum=sum+a print sum/4 L=[95,86,74,63] sum=0.0 for a in L: sum=sum+a print (sum/4)
for循环求和,为什么这两种输入形式都是错误的??求指导,,
L=[95,86,74,63] sum=0.0 for a in L: sum=sum+a print sum/4 L=[95,86,74,63] sum=0.0 for a in L: sum=sum+a print (sum/4)
2016-03-12
举报