第一种形式 啥都没有
第二种也是最常见的:
while True:
S = input().split()
s = ''
for i in S:
s += i
#这里得到的s就是一个字符串,一次输入,处理一个。如果最后输入要求也是字符串的话,也要注意
第三种:
def ---------:
_a_cnt = int(input())
_a_i = 0
_a = []
while _a_i < _a_cnt:
_a_item = int(input())
_a.append(_a_item)
_a_i += 1