python 刷新缓冲区,实时监测

sys.stdout.flush()
sys.stderr.flush()
原文地址:https://www.cnblogs.com/xudongliang/p/12467674.html