📅  最后修改于: 2022-03-11 14:45:45.195000             🧑  作者: Mango
import sys
str = ""
while True:
c = sys.stdin.read(1) # reads one byte at a time, similar to getchar()
if c == ' ':
break
str += c
print(str)