课程
/后端开发
/Python
/初识Python
以蒙圈
2017-03-12
源自:初识Python 7-3
正在回答
def square_of_sum(L):
sum = 0
for v in L:
sum += (v * v)
return sum
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序