python - idle - 清屏

python idle 清屏shell窗口:
1.下载 clearwindow.py (https://bugs.python.org/file14303/ClearWindow.py)
2.存放到C:\Users\bj\AppData\Local\Programs\Python\Python36\Lib\idlelib下面
3.在这个目录下找到config-extensions.def文件末尾加上
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=<Control-Key-x>
4.然后保存退出就可以了

打开python的idle,看看options是不是多了一个选项clear shell window ctrl+x

参考网址:https://bugs.python.org/issue6143

posted @ 2018-02-01 20:31  Alice的小屋  阅读(265)  评论(0编辑  收藏  举报