save console output in string python code example
Example: what is the correct way to output a string to the console in python
time = datetime.now() #2014-07-08 13:08:09
print "%02d:%02d:%02d" % (time.hour, time.minute, time.second)
time = datetime.now() #2014-07-08 13:08:09
print "%02d:%02d:%02d" % (time.hour, time.minute, time.second)