获取每一行输入
while True:
theInput = input()
存储多行输入
inputs = []
while True:
theInput = input()
inputs.append(theInput)
加入终止判断
inputs = []
while True:
theInput = input()
try:
inputs.append(theInput)
except EOFError:
break
相关文章