错在哪里def square_of_sum(L):
X=0
Y=0
while x<=len(L)-1:
Y=Y+L[x]*L[x]
x=x+1
return Yprint square_of_sum([1,2,3,4,5])print square_of_sum([-5,0,5,15,25])
添加回答
举报
0/150
提交
取消