f=open("log.txt","a") ftmp=sys.stdout sys.stdout=f #上面这条语句后,以后所有的print就会自动打印到log.txt中,不再需要print >>f, xxx的形势 print ... print ...
sys.stdout=ftmp
https://adeshpande3.github.io/adeshpande3.github.io/Deep-Learning-Research-Review-Week-1-Generative-Adversarial-Nets
https://pages.corifeus.com/github/docker-debian-testing-mongodb-stable