f_result=open('result.txt', 'w')
sys.stdout=f_result
python | Program run log output to file
Guess you like
Origin blog.csdn.net/weixin_43236007/article/details/113824719
Ranking
f_result=open('result.txt', 'w')
sys.stdout=f_result