展开全部
进入你的python安装目录,比如2113我5261的python安装在d盘,你只要进到下4102面这个文件夹去,D:\Program Files\Python33\Lib\idlelib\idle.bat运行即可。
至于出现1653一个黑色的空白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 Files\Python33\Lib\idlelib\加入系统变量,这样只要打开cmd输入idle回车就可以了。
已经试验成功了,楼主放心使用!