Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
python_wiki:clear_screen [2014/11/19 22:29] billdozor |
python_wiki:clear_screen [2014/11/24 22:42] billdozor |
||
---|---|---|---|
Line 4: | Line 4: | ||
* subprocess : to send commands to the OS | * subprocess : to send commands to the OS | ||
- | < | + | < |
import sys, | import sys, | ||
Line 15: | Line 15: | ||
Call this function to clear the command line screen: | Call this function to clear the command line screen: | ||
- | < | + | < |
clear_screen() | clear_screen() | ||
..do other stuff now that my screen is clear! | ..do other stuff now that my screen is clear! | ||
</ | </ |