Saturday, August 31, 2013

Execute System Command in Python


Simple Note

(Assume the command that can clear screen called cls and you want to clear screen in Python Interactive Mode)

import os lib then call os.system(COMMAND) as below:

Before:



After:


No comments:

Post a Comment