两个list单独print结果正确, 同时print结果不对
#L = [-5, 0, 5, 15, 25]
L1 = []
#for x in L:
# a = x
# L1.append(a*a)
# print L1
# print sum(L1)
def square_of_sum(L):
for x in L:
a = x
L1.append(a*a)
return sum(L1)
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])