Redirecting the Output Stream : Redirect : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Redirect »

 

Redirecting the Output Stream


import sys
sys.stdout = open('log.txt', 'a')      

print 1



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo File
» Redirect