英文:
Can I clear the screen in Python's IDLE Shell?
问题
我正在尝试在Python的IDLE shell中清屏,目前还没有找到任何可行的方法来实现。
如何做到这一点?
英文:
I'm trying to clear the screen in Python's IDLE shell, and so far haven't found any working mechanism to do so.
How can this be done?
答案1
得分: 0
一个不明显的清除 Shell 的方法是打开一个空文件,如果需要的话保存它,然后关闭 Shell,运行这个空文件。效果不太好,但可行。在编辑器中,全选和删除可以工作,但在 Shell 中不行。问题50393 是关于添加一个明显而直接的清除 Shell 方法的。但有一些技术问题,我没有得到任何反馈。
我将把你的问题视为支持采取某种行动,无论我认为最好的是什么。
英文:
An unobvious way to clear Shell is to open an empty file, save it if necessary, close Shell, and run the empty file. Pretty poor, but it works. Select-All and Delete works in editors but not Shell. Issue 50393 is about adding an obvious and direct way to clear Shell. But there are several technical issues which I have gotten no feedback on.
I will take your question as a vote for doing something, whatever I think best.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论