1、win+R 打开输入cmd 输入 tasklist | findstr "pythonw" 得到如图: 2、进行 taskkill /pid 6272 /f taskkill /pid 7544 /f 完成!