2010-08-17 6 views

Répondre

3

Comme ceci.

python one_process.py | python the_other_process.py 

Faites l'OS faire le travail pour vous. En one_process.py, vous écrivez à sys.stdout. En the_other_process.py, vous avez lu sys.stdin.

C'est tout.

+0

+1 court et doux –

Questions connexes