출처: http://forums.devshed.com/python-programming-11/run-external-program-in-python-363366.html # simple import os print os.system('example.exe') # when we need to exchange std in/out import subprocess, os import time PIPE = subprocess.PIPE p = subprocess.Popen("example.exe", stdin=PIPE, stdout=PIPE) p.stdin.write("10") time.sleep(0.1) # or p.wait(), without this line, deadlock happens p.stdin.fl..