Why doesn't this python keyboard interrupt work? (in pycharm)

前端 未结 7 1236
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 15:28

My python try/except loop does not seem to trigger a keyboard interrupt when Ctrl + C is pressed while debugging my code in pycharm. My code look like this:



        
7条回答
  •  -上瘾入骨i
    2020-12-03 15:42

    If that comment doesn't solve your problem, (from @tdelaney) you need to have your shell window focused (meaning you've clicked on it when the program is running.) and then you can use Control+C

提交回复
热议问题