what???
>>> def square_of_sum(L):
... sum=0
... for x in L:
... sum=sum+x*x
... return sum
... print square_of_sum([1,2,3,4,5])
File "<stdin>", line 6
print square_of_sum([1,2,3,4,5])
^
为啥会这样啊,有什么问题?
>>> def square_of_sum(L):
... sum=0
... for x in L:
... sum=sum+x*x
... return sum
... print square_of_sum([1,2,3,4,5])
File "<stdin>", line 6
print square_of_sum([1,2,3,4,5])
^
为啥会这样啊,有什么问题?
2020-02-16
举报