首页 新闻 赞助 找找看
2
回答数

已解决问题 python函数参数类型问题

1 def calc(numbers): 2 ret = 0 3 for n in numbers: 4 ret = ret + n * n 5 return ret 6 print calc([4]