题目有两个print,为什么答案上只有一个值。
题目有两个print,为什么答案上只有一个值。
def square_of_sum(L):
sum =0
for x in L:
sum =0+x**2
return sum
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
题目有两个print,为什么答案上只有一个值。
def square_of_sum(L):
sum =0
for x in L:
sum =0+x**2
return sum
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
2018-01-06
举报