stdoutのキャプチャの仕方 in Python

oinumeoinume のブックマーク 2011/10/15 16:20

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Capture stdout from a script?

    suppose there is a script doing something like this: # module writer.py import sys def write(): sys.stdout.write("foobar") Now suppose I want to capture the output of the write function and store i...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう