Created
July 23, 2019 13:13
-
-
Save jonasbjork/2c53cb4a4816c41609c82f92e7723cf3 to your computer and use it in GitHub Desktop.
Clear the screen (clear, cls command) with Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cls(): | |
print("\033[H\033[J") | |
if __name__ == "__main__": | |
cls() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment