-
-
Save voyeg3r/322022 to your computer and use it in GitHub Desktop.
Limpando o terminal no 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
# 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() | |
# também achei uma opção assim: | |
# http://forums.devshed.com/python-programming-11/how-works-os-system-clear-and-cls-584090.html | |
os.system(['clear','cls'][1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it worked perfectly!!! Thanks a lot!