2012. 1. 16.

How to clear console in python


# # Screen clear 
# You can use it when you make  a console type.

import os
if os.name == "posix":
   os.system('clear')   # not MS-series
elif os.name in ("nt", "dos", "ce"):
   os.system('CLS')   #  MS-series --> DOS/Windows

댓글 없음:

댓글 쓰기