print转log文件

log_file = open(path,'w+') sys.stdout = log_file 。。。。。 log_file.close()
posted @ 2022-03-04 18:54  山…隹  阅读(45)  评论(0编辑  收藏  举报