Read a File from redirected stdin with python

后端 未结 3 890
孤街浪徒
孤街浪徒 2021-01-13 10:33

I am trying to read the content of a text file that was redirected stdin via the command line, and send it by the Internet when the receiver has to assemble it back to it\'s

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-13 11:07

    Why are you even looking at the data:

    result = sys.stdin.read()
    

提交回复
热议问题