Mega Code Archive
Categories
/
Python Tutorial
/
File
Redirecting the Output Stream
import sys sys.stdout = open('log.txt', 'a') print 1