如何清除idle3(python3 shell)的屏幕?

how to clear the screen of the idle3(python3 shell)?

我使用了一些代码,例如 clear cls clc 但其中 none 给了我想要的结果。
有什么命令可以清屏idle吗?

有一个临时 hack 可以在 IDLE Python 3 shell 中实现清屏效果。它是:

print ("\n" * 100)

按键 Ctrl+F6

然后你就可以重启powershell了。 就像终端中使用的 'clear' 一样,它会清除您为其赋值的所有变量。