Skip to content Skip to sidebar Skip to footer

Clear The Screen In Python

Possible Duplicate: clear terminal in python How can I clear the window for all text, so that it looks like it has just been opened? I've heard os.system('clear') works, but it

Solution 1:

clear is for linux, I believe. cls should do the trick:

os.system("cls")

Solution 2:

os.system('cls')

That should work

Post a Comment for "Clear The Screen In Python"