请大神解答,为什么TIME OUT
def square_of_sum(L):
for x in L:
L.append(x**2)
return sum(L)
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
def square_of_sum(L):
for x in L:
L.append(x**2)
return sum(L)
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
2018-06-27
举报