Pythonのお勉強 Part22
at TECH
778:デフォルトの名無しさん
08/01/10 06:25:05
>>774
URLリンク(python.matrix.jp)
>>> args = ['python', '-c', 'print raw_input()']
>>> from subprocess import Popen, PIPE
>>> proc = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE)
>>> proc.stdin.write('input text')
>>> proc.stdin.close()
>>> proc.wait()
0
>>> print proc.stdout.read()
input text
>>> print proc.stderr.read()
>>>
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5505日前に更新/217 KB
担当:undef