课程
/后端开发
/Python
/初识Python
L = [75, 98, 59, 81, 66, 43, 69, 85]sum = 0.0n = 0for x in L: sum = sum + x n = n + 1print sum / n
2015-09-29
源自:初识Python 5-7
正在回答
L = [75, 98, 59, 81, 66, 43, 69, 85] sum = 0.0 n = 0 for x in L: sum = sum + x n = n + 1 print sum / n 整齐一点能看懂不?就是求平均数
智商是硬伤
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序