解题代码如下:
while True:
try:
#把输入的数用map转化为一个存整数类型的列表
caption = list(map(int, input().split()))
ans = 0
for i in caption:
ans += i
print(ans)
except EOFError:
break
解题代码如下:
while True:
try:
#把输入的数用map转化为一个存整数类型的列表
caption = list(map(int, input().split()))
ans = 0
for i in caption:
ans += i
print(ans)
except EOFError:
break