2010-08-17 54 views

回答

3

像这样。

python one_process.py | python the_other_process.py 

使操作系统为您做好工作。

one_process.py,你写信给sys.stdout

the_other_process.py中,您从sys.stdin读取。

就是这样。

+0

+1简短而甜美 – 2010-08-17 14:25:32