Python output redirection for python input and output (to be)

 

 

1. Introduction to sys.stdin, sys.stdout, sys.stderr

Standard input: usually a keyboard. The sys.stdin object provides an input character stream for the interpreter, generally using raw_input() and input() functions.

Standard output: usually the screen. The sys.stdout object receives the output produced by the print statement.

Error output: Generally, it is an error message. The sys.stderr object receives error information.

 

 

Guess you like

Origin blog.csdn.net/helunqu2017/article/details/114610924