本文摘自php中文网,作者(*-*)浩,侵删。
IDLE是Python软件包自带的一个集成开发环境,可以方便地创建、运行、调试Python程序。
进入你的python安装目录,比如我的python安装在d盘,你只要进到下面这个文件夹去,例如:D:\ProgramFiles\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具体做些什么
装了anaconda要卸载Python吗
Python详解os模块和shutil模块
什么是爬虫?Python网络爬虫中概念的介绍
Python中序列增量赋值的简单介绍(附示例)
Python使用pylab库实现绘制直方图功能
Python中的any函数是什么?如何使用any函数?
Python如何利用公式计算π
Python中json模块和pickle模块的简单介绍(附示例)
Python中如何对字典排序
更多相关阅读请进入《Python》频道 >>
人民邮电出版社
python入门书籍,非常畅销,超高好评,python官方公认好书。
转载请注明出处:木庄网络博客 » python idle怎么打开