返回值怎么一直是1啊?????????
def square_of_SUM(L):
Y=[]
for x in L:
Y.append(x*x)
sum(Y)
return( Y)
print square_of_SUM([1,2,3])
def square_of_SUM(L):
Y=[]
for x in L:
Y.append(x*x)
sum(Y)
return( Y)
print square_of_SUM([1,2,3])
2017-02-24
举报