I used some of the codes such as clear
cls
clc
but none of them gave me the desired result.
Is there any command that can clear the screen of the idle?
There is a temporary hack to achieve the effect of a clear screen in IDLE Python 3 shell. It is:
print ("\n" * 100)
Press the key Ctrl + F6
then you can restart the powershell. Just like the 'clear' used in terminal, it clears the all variables you've assigned values for.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.