屏幕东西太多,需要清屏,在windows的窗口清屏命令是cls,在Python IDLE中的快捷键是Ctrl+L
不过这个快捷键默认是没有的,需要进行一些操作
一、将下面的代码复制保存到新建的clearwindow.py中
"""
Clear Window Extension
Version: 0.2
Author: Roger D. Serwy
roger.serwy@gmail.com
Date: 2009-06-14
It provides "Clear Shell Window" under "Options"
with ability to undo.
Add these lines to config-extensions.def
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=<Control-Key-l>
"""