Advertisement
python_notes

Clear the screen

May 21st, 2015
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1.  
  2. # Clear the screen
  3.  
  4.  
  5. import os
  6.  
  7.  
  8. # on linux / os x
  9.  
  10. os.system('clear')
  11.  
  12. -------------------------------------------------
  13. # on windows
  14.  
  15. os.system('cls')
  16.  
  17.  
  18.  
  19.  
  20. .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement