print转log文件

log_file = open(path,'w+')
sys.stdout = log_file
。。。。。
log_file.close()

 

posted @ 2022-03-04 18:54  山…隹  阅读(61)  评论(0)    收藏  举报