算法94---牛客网编程输入

一、基本的输入:

a = int(input()) ##输入一个整数 3
arr = list(map(int,input().strip().split()))  #输入一行整数 1 2 3 4
## 如果不知道输入什么时候停止
try:
    while True:
        line = input().strip()
        if line == '':
            break
        ###进行接下来的输入
except:
    pass
原文地址:https://www.cnblogs.com/Lee-yl/p/10760517.html