本文摘自php中文网,作者anonymity,侵删。
进入python安装目录,比如python安装在d盘,你只要进到下面这个文件夹去,D:\Program Files\Python33\Lib\idlelib\idle.bat运行即可。
至于出现一个黑色的空白cmd命令提示符窗口的解决方法只要用记事本打开idle.bat文件,在文件的末尾加上exit即可,如:
idle.bat原代码:
1 2 3 4 | @ 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
|
更改后代码:
1 2 3 4 5 | @ 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在哪的详细内容,更多文章请关注木庄网络博客!!
相关阅读 >>
Python如何编写阶乘?
Python步长什么意思
Python内置的集成开发工具是什么
成为Python大牛必不可少的几款编辑器
如何用Python画三角形
如何检测一个变量是否存在
Python入口函数是什么
Python可以做动图吗
Python里range什么意思
Python如何使用列表推导式
更多相关阅读请进入《Python》频道 >>
人民邮电出版社
python入门书籍,非常畅销,超高好评,python官方公认好书。
转载请注明出处:木庄网络博客 » python安装包里idle在哪