Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

* COMMENT -*- mode: org -*-
#+Date: 2017-02-23
Time-stamp: <2017-02-23>

** When a python program support reading from stdin, it can accept input from
stdin redirect or shell pipes. For example:

    python main.py < /path/to/foo.txt
    cat /path/to/foo.txt | python main.py

sys.stdin is a file like object, usually you process line by line via
readline() call. You can also read it all though.

About

read from stdin

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages