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

前端 未结 7 1247
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  鱼传尺愫
    2020-12-03 15:48

    Make sure the window is selected when you press ctrl+c. I just ran your program in IDLE and it worked perfectly for me.

提交回复
热议问题