Python threading, threads do not close

后端 未结 3 1494
情话喂你
情话喂你 2020-12-20 23:12

I have a Python program and when I exit the application with Ctrl-c, the script does not close. My process still shows in running processes.

#!/         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-20 23:34

    the_thread.setDaemon(true), see http://docs.python.org/library/threading.html#threading.Thread.daemon

提交回复
热议问题