算法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

 

posted on 2019-04-24 09:25  吱吱了了  阅读(352)  评论(0编辑  收藏  举报

导航