Python IDLE中实现清屏
2015-07-09 23:19
766 查看
首先下载clearwindow.py(点击可直接下载,不能下载的可以右键保存,格式为py结尾)
将这个文件放在Python X\Lib\idlelib目录下(X为你的python版本),然后在这个目录下找到config-extensions.def这个文件(idle扩展的配置文件),以记事本的方式打开它
打开config-extensions.def 后在句末加上这样几句:
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=<Control-Key-l>
然后保存退出就可以了。
打开python的idle,看看options是不是多了一个选项clear shell window ctrl+L
将这个文件放在Python X\Lib\idlelib目录下(X为你的python版本),然后在这个目录下找到config-extensions.def这个文件(idle扩展的配置文件),以记事本的方式打开它
打开config-extensions.def 后在句末加上这样几句:
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=<Control-Key-l>
然后保存退出就可以了。
打开python的idle,看看options是不是多了一个选项clear shell window ctrl+L
相关文章推荐
- 一个WXPython+采集的 Demo
- python入门知识
- Python中的__new__()方法与实例化
- Python基本语法
- Python对象(下)
- 《python核心编程》读书笔记——列表解析
- yiled in python
- Python项目四:新闻聚合
- python3.4连接WAMP中的MySQL数据库
- Windows下编译fast rcnn
- Python进阶二:模块和包
- adaBoost
- 寻找回文数的python的实现
- 用Python中的list分片方法解决约瑟夫环问题
- WinPython升级Pip
- 在Windows上安装Python
- 寻找所有的素数的python实现
- Duck Type in Python
- python中strip()函数的理解
- Beginning Python From Novice to Professional (4) - 演示样本格式字符串