不是算平均成绩吗为什么是每个数除5Y
>>> l=[75, 92, 59, 68, 99]
>>> sum = 0.0
>>> for x in l:
... sum = sum+x
... print(sum/ 5)
...
15.0
33.4
45.2
58.8
78.6
>>> l=[75, 92, 59, 68, 99]
>>> sum = 0.0
>>> for x in l:
... sum = sum+x
... print(sum/ 5)
...
15.0
33.4
45.2
58.8
78.6
2022-03-23
举报