哪里有问题?
>>> L = [75, 92, 59, 68] >>> sum = 0.0 >>> for x in L: ... sum=sum+x ... print sum ... print sum/4 File "
", line 4 print sum/4 哪里错了? 直接打印数值除以是4是对的好奇怪,打印出来也对>>> L = [75, 92, 59, 68] >>> sum = 0.0 >>> for x in L: ... sum=sum+x ... print sum ... print sum/4 File "
", line 4 print sum/4 哪里错了? 直接打印数值除以是4是对的好奇怪,打印出来也对2018-04-27
举报