python |ファイルへのプログラム実行ログ出力

f_result=open('result.txt', 'w') 
sys.stdout=f_result

おすすめ

転載: blog.csdn.net/weixin_43236007/article/details/113824719