![图片[1]-python怎么清除窗口计算历史?-uusu优素-乐高,模型,3d打印,编程](http://uusucn.zbbe.cn/wp-content/uploads/2024/01/5ee9b293bc84c397.jpg)
1、下载clearwindow.py。

2、复制clearwindow.py文件,并放在Python安装目录PythonX\Lib\idlelib下面。

3、在Python X\Lib\idlelib目录下找到config-extensions.def(IDLE扩展的配置文件),用记事本打开。

4、在文件末尾制添加如下代码:
[ClearWindow] enable=1 enable_editor=0 enable_shell=1 [ClearWindow_cfgBindings] clear-window=<Control-Key-l>

5、打开Python的IDLE,options选项中就可以看到增加了Clear shell window ctrl L。

6、在IDLE输入代码,然后按Ctrl+L。

7、最后可以发现窗口已经清理干净了。
原文来自:https://www.py.cn© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END


















































暂无评论内容