return必须要吗
def square_of_sum(list):
sum = 0
for element in list:
sum = sum + element*element
print(sum)
def square_of_sum(list):
sum = 0
for element in list:
sum = sum + element*element
print(sum)
2016-03-06
举报