Python Shell 中IDLE清屏
来源:互联网 发布:网络嗅探器使用教程 编辑:程序博客网 时间:2024/06/05 04:40
为idle增加一个清屏的扩展ClearWindow就可以了(在http://bugs.python.org/issue6143中可以看到这个扩展的说明)。
下面我说安装使用的方法。首先下载clearwindow.py(点击可直接下载,不能下载的可以右键保存,格式为py结尾),将这个文件放在Python X\Lib\idlelib目录下(X为你的python版本),然后在这个目录下找到config-extensions.def这个文件(idle扩展的配置文件),以记事本的方式打开它(为防止出错,你可以在打开它之前先copy一个备份)。额,打开后它看起来可能会密密麻麻的,如果可以,建议你最好用像sublime text或vim这样支持高亮格式化的编辑器来打开它。
打开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
如果是这样的话,那就证明你安装成功了,以后要清屏直接ctrl+L就可以了,^_^)。
0 0
- Python Shell 中IDLE清屏
- python shell (IDLE)清屏设置
- python IDLE中实现清屏
- 在Python IDLE中实现清屏
- [python]Python IDLE清屏
- python idle 清屏
- Python IDLE 清屏问题
- Python IDLE 清屏问题
- python idle 清屏
- Python IDLE 清屏
- python IDLE清屏
- Python IDLE 清屏
- Python IDLE 清屏插件
- Python IDLE 清屏
- python IDLE怎么清屏
- Python的idle清屏
- Python-IDLE实现清屏
- Python IDLE清屏
- LeetCode23. Merge k Sorted Lists!!!!!!
- RedWallet 微信抢红包 Wilson
- lintcode:Update Bits
- Android SDK HTTP Proxy Server
- ffmpeg入门(二)
- Python Shell 中IDLE清屏
- iOS应用架构谈
- Spring MVC 4 HelloWorld
- JavaScript第三课——数据类型(typeof操作符、Undefined类型、Null类型、Boolean类型)
- Logstash 实践之Spark Driver日志解析
- Cfree-5各种抽风解决办法
- 自定义代码块
- Codeforces 234F (dp)
- camp day7