2018年6月30日星期六

python2 : 取消stdout的line buffer

import os
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)

没有评论:

发表评论