进入你的python安装目录,比如我的python安装在d盘,你只要进到下面这个文件夹去,例如:D:\ProgramFiles\Python33\Lib\idlelib\idle.bat运行即可。
至于出现一个黑色的空白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回车就可以了。
以上就是python idle怎么打开的详细内容,更多请关注php中文网其它相关文章!
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
上一篇:python全栈是什么意思
下一篇:python入门看什么