1import os 2 3if __name__ == '__main__': 4 while True: 5 buf = os.read(0, 1024) 6 if not buf: 7 break 8 os.write(1, buf) 9