How to stop/terminate a python script from running?

后端 未结 16 1785
-上瘾入骨i
-上瘾入骨i 2020-12-02 13:46

I wrote a program in IDLE to tokenize text files and it starts to tokeniza 349 text files! How can I stop it? How can I stop a running Python program?

16条回答
  •  甜味超标
    2020-12-02 14:29

    Windows solution: Control + C.

    Macbook solution: Control (^) + C.

    Another way is to open a terminal, type top, write down the PID of the process that you would like to kill and then type on the terminal: kill -9

提交回复
热议问题