python's output redirect

[python's output redirect]

fin = open("xx.txt", 'r');
print >>fin, "hello world", 12;
fin.close();
原文地址:https://www.cnblogs.com/tekkaman/p/3414639.html