IDLE (Python)
外观
![]() Ubuntu中的IDLE,设置高亮的交互环境 | |
原作者 | Guido van Rossum |
---|---|
首次发布 | 1998年12月22日 |
当前版本 |
|
源代码库 | |
编程语言 | Python |
类型 | 集成开发环境 |
许可协议 | |
网站 | docs |
IDLE (Integrated Development and Learning Environment的简称)[2][3] 是一个Python的集成开发环境,自1.5.2b1以来已与该语言的默认实现捆绑在一起。 [4][5]许多Linux发行版中,它是Python中可选部分的包装。它完全使用Python和Tkinter GUI工具包( Tcl/Tk的包装函数)编写。[6]
IDLE是开发Python程序的一个基本的跨平台IDE,比较适合初学者尤其是在教育环境中使用,是非商业Python开发的不错的选择。
软件界面
打开 IDLE 后,会出现一个增强的交互解释器窗口,它具有比基本的交互命令提示符更多的功能。IDLE中会显示“三个尖括号”提示符(>>>),这时就可以输入Python代码了。
功能
根据自带的README文件,IDLE的主要功能有:
编辑选项
IDLE在编写Python程序时提供如下常用的编辑功能:[7]
- 撤销;
- 重做;
- 剪切;
- 复制;
- 粘贴;
- 查找;
- 文件中查找;
- 替换;
- 将光标定位到指定行首;
- 单词自动补全。
命名
Python的设计者吉多·范罗苏姆说IDLE代表"Integrated Development and Learning Environment"(集成开发与学习环境)。[8] 因为他根据英国电视剧《Monty Python的飞行马戏团》为Python命名,所以IDLE这个名字很可能也是为了致敬Monty Python的创始人之一,埃里克·艾德尔(Eric Idle)。[9][10]
另见
参考来源
- ^ Changelog. [2025年4月1日] (英語).
- ^ From the Help > About screen
- ^ IDLE — Python 3.9.5 documentation. [2020-06-04]. (原始内容存档于2020-06-04).
- ^ Subject: IDLE 0.1 -- a Python IDE 互联网档案馆的存檔,存档日期2018-09-25., By Guido van Rossum - 16 Nov 1998 - comp.lang.python, At the conference I mentioned a few times that I was working on a Tkinter-based IDE for Python. I've decided to use the paradigm "release early and often" for this piece of software (especially since I don't expect I'll have much time to work on it), so version 0.1 (essentially a dump of my directory) is now sitting in the contrib directory ftp.python.org.
- ^ IDLE 0.1 was distributed with the Python 1.5.2b1 release on 12/22/98., From: \Python-1.5.2\Tools\idle\NEWS.txt
- ^ Kenneth, Reitz; Tanya, Schlusser. Python漫游指南. 东南大学出版社. 2017: 93. ISBN 9787564173746.
- ^ 夏敏捷; 张西广. Python程序设计应用教程. 中国铁道出版社. 2018: 6. ISBN 9787113273439.
- ^ IDLE — Python 3.9.2 documentation. docs.python.org. [2021-02-26].
- ^ Lutz, Mark & Ascher, David (2004). Learning Python, p. 40. O'Reilly Media, Inc. ISBN 978-0-596-00281-7.
- ^ Hammond, Mark & Robinson, Andy (2000). Python Programming On Win32: Help for Windows Programmers, p. 59. O'Reilly Media, Inc. ISBN 978-1-56592-621-9.