for 循环
L=[75,92,59,68] >>> sum=0.0 >>> for name in L: sum=sum+name print sum/4 18.75 41.75 56.5 73.5 怎样才能省去中间过程值直接输出最终结果
L=[75,92,59,68] >>> sum=0.0 >>> for name in L: sum=sum+name print sum/4 18.75 41.75 56.5 73.5 怎样才能省去中间过程值直接输出最终结果
2015-11-12
举报