def list_num(listnum):
num=0
for i in listnum:
num=num+i
return num
print(list_num([2,5,56,2]))
迭代求和
最新推荐文章于 2021-03-04 10:16:22 发布
def list_num(listnum):
num=0
for i in listnum:
num=num+i
return num
print(list_num([2,5,56,2]))