运行语法错误
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])
为什么运行到这里报错,
invalid syntax
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])
为什么运行到这里报错,
invalid syntax
2015-05-04
举报