Home | Mirror | Search | 雜文 | ITEYE 博客 | OSChina 博客 | 51CTO 博客

第 6 章 Pipe

目錄

6.1. stdin
6.2. forkpty
6.3. Popen
6.4. socketpair

6.1. stdin

#!/usr/bin/python
#filename:demo.py

import sys

for line in sys.stdin:
    print line,


#ls -lh | python demo.py
		
comments powered by Disqus