In Python 3 you can iterate over the lines of standard input, the loop will stop when EOF is reached: from sys import stdin for line in stdin: print(line, ...
確定! 回上一頁