本文摘自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的pip工具命令有哪些
解决Python requests库编码 socks5代理的问题
Python装饰器的执行过程实例分析
如何将Python中文件写入txt
Python怎么新建文件夹
更多相关阅读请进入《Python》频道 >>
人民邮电出版社
python入门书籍,非常畅销,超高好评,python官方公认好书。
转载请注明出处:木庄网络博客 » python安装包里idle在哪