Child processes created with python multiprocessing module won't print

前端 未结 4 1332
情歌与酒
情歌与酒 2020-11-27 08:12

I have a problem with the code below, and with any code that uses the print function in the child processes. I can\'t see any printed statements, even if I use

4条回答
  •  有刺的猬
    2020-11-27 08:45

    I was using PyCharm IDE, and by checking the "Emulate terminal in output console" field in Run/Debug Configurations, it printed the desired result.

    Hope it helps if you're using PyCharm.

提交回复
热议问题