Created
March 4, 2010 17:07
-
-
Save anonymous/321909 to your computer and use it in GitHub Desktop.
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
# source: http://stackoverflow.com/questions/517970/how-to-clear-python-interpreter-console | |
import os | |
def cls(): | |
os.system(['clear','cls'][os.name == 'nt']) | |
# now, to clear the screen | |
cls() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment