Joh*_*ine 0 python file-io python-2.7
我有一个格式的文本文件:
2
1 3
2 4
Run Code Online (Sandbox Code Playgroud)
我编写了一个 python 程序,它要求输入的数量并打印出值 sum 。
n = int(raw_input())
for _ in range(n):
a,b = map(int,raw_input().split())
print a+b
Run Code Online (Sandbox Code Playgroud)
但