至于出现一个黑色的空白cmd命令提示符窗口的解决方法只要用记事本打开idle.bat文件,在文件的末尾加上exit即可,如:
idle.bat原代码:
@echo off rem Start IDLE using the appropriate Python interpreter set CURRDIR=%~dp0 start "IDLE" "%CURRDIR%....pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9
更改后代码:
@echo off rem Start IDLE using the appropriate Python interpreter set CURRDIR=%~dp0 start "IDLE" "%CURRDIR%....pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9 exit
补充:可以将D:Program FilesPython33Libidlelib加入系统变量,这样只要打开cmd输入idle回车就可以了。