python | 程序运行log输出到文件

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

猜你喜欢

转载自blog.csdn.net/weixin_43236007/article/details/113824719