Operating System Interface, system time : System Time « System « Python






Operating System Interface, system time

Operating System Interface, system time

import os
print os.system('time 0:02')

#Be sure to use the "import os" style instead of "from os import *". This will keep 
#os.open() from shadowing the builtin open() function which operates much 
#differently.


           
       








Related examples in the same category