控制台读取无限制行数,并输出去掉空格和换行符的数字 基于python3 import sys _in = sys.stdin.read() for nr in _in.split(): print (nr)