获取每一行输入
while True: theInput = input()
存储多行输入
inputs = [] while True: theInput = input() inputs.append(theInput)
加入终止判断
inputs = []
while True:
theInput = input()
try:
inputs.append(theInput)
except EOFError:
break
相关文章
- ACM的Python版输入输出(Python3输入输出)ACM的python输入输出格式python在ACM中的输入应用Python3的多行输入



