Python中在一行中输入两个整数
2019-06-17 本文已影响0人
雨落八千里

python在一行输入两个整数,其中用空格隔开
a, b = map(int,input().split())
python多组输入一行两个数,其中用空格隔开
while True: try: a,b = map(int,input().split()) print(a+b) except: break;
python在一行输入两个整数,其中用空格隔开
a, b = map(int,input().split())
python多组输入一行两个数,其中用空格隔开
while True: try: a,b = map(int,input().split()) print(a+b) except: break;