Stopping python using ctrl+c

前端 未结 11 1418
-上瘾入骨i
-上瘾入骨i 2020-11-29 19:44

I have a python script that uses threads and makes lots of HTTP requests. I think what\'s happening is that while a HTTP request (using urllib2) is reading, it\'s blocking a

11条回答
  •  春和景丽
    2020-11-29 20:12

    On Windows, the only sure way is to use CtrlBreak. Stops every python script instantly!

    (Note that on some keyboards, "Break" is labeled as "Pause".)

提交回复
热议问题