[英]How can I clear a run window while the program is running?
so there's this program I made and I want to be able to clear the run window after certain actions are performed, however I haven't been able to find a way to clear it aside from clearing it yourself using the 'clear all' button(PyCharm btw).所以这是我制作的这个程序,我希望能够在执行某些操作后清除运行 window,但是除了使用“全部清除”按钮自行清除之外,我还没有找到清除它的方法( PyCharm 顺便说一句)。 Is it possible to do that?
有可能这样做吗?
Edit: Hey so it seems that you can't clear the pycharm terminal without the clear button, however running it in cmd, the os.system('cls') or os.system('clear') works and will clear the screen.编辑:嘿,看来您无法在没有清除按钮的情况下清除 pycharm 终端,但是在 cmd 中运行它,os.system('cls') 或 os.system('clear') 工作并将清除屏幕.
You can't clear the pycharm window without the clear all button, but the os.system('clear') will clear the window if you run it in cmd instead so use that instead.. You can't clear the pycharm window without the clear all button, but the os.system('clear') will clear the window if you run it in cmd instead so use that instead..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.