更新时间:2021-09-01 21:30:20
这是由于标准输出缓冲造成的.您仍然可以刷新缓冲区:
This happens due to stdout buffering. You still can flush the buffers:
import sys print 'starting' sys.stdout.flush()
您可以在此处和这里.
Python多线程打印语句延迟到所有线程完成执行