Home  >  Q&A  >  body text

在terminal下运行python程序,卡住,按回车才能继续。

如上问题在windows和linux下都出现过,跑的程序也有所不同。
程序里都有打印进度的print,有的时候半天不动,输入回车之后就print出了新的一行,怀疑是和print的IO操作相关。
求解释,谢谢。

天蓬老师天蓬老师2742 days ago910

reply all(2)I'll reply

  • 阿神

    阿神2017-04-17 17:50:27

    Non-asynchronous, you can only print after the thread is completed

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:50:27

    Some programs will print information when reporting an error.

    The progress library can use tqdm

    reply
    0
  • Cancelreply