def square_of_sum(L): sum = 0 for x in L: sum = sum + x * x return sumprint square_of_sum([1, 2, 3, 4, 5])print square_of_sum([-5, 0, 5, 15, 25])
中的sum = 0在里面表式什么意思啊,有啥作用
林炯昊Joon
慕粉1472901989
Iamxiaoq
相关分类