哪里错了呀????
def square_of_sum(L):
n=0
sum=0
while n<L.len():
sum+=L[n]*L[n]
n+=1
return sum
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
def square_of_sum(L):
n=0
sum=0
while n<L.len():
sum+=L[n]*L[n]
n+=1
return sum
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
2019-07-02
举报