python io unbufferd

3005阅读 0评论2010-10-21 redskywy
分类:

import sys
import os

# reopen stdout file descriptor with write mode
# and 0 as the buffer size (unbuffered)
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)


上一篇:同样是程序员为啥差别怎么就这么大呢 。。。
下一篇:[转帖] 找回丢失的无线网络图标