Python3在一行输入多个数字

输入一个数字直接 m = int(input())

输入两个数字就是 m, n = map(int, input().split())

三个及三个以上就和两个的类似:

 a, b, c = map(int, input().split())

 a, b, c, d = map(int, input().split())

猜你喜欢

转载自blog.csdn.net/q1410136042/article/details/79613628
今日推荐