可以输入列表吗?请问我这代码错在哪里呀?
## -*- coding: utf-8 -*- def square_of_sum(a): sum=0 for i in a: sum=sum+i**2 print('函数内:',sum) x=input() print(square_of_sum(x))
## -*- coding: utf-8 -*- def square_of_sum(a): sum=0 for i in a: sum=sum+i**2 print('函数内:',sum) x=input() print(square_of_sum(x))
2021-10-11
举报