在linux终端执行python3 xxx.py文件打印的日志输出到指定文件

python a_script.py 2>&1 | tee a.log

posted @ 2022-02-17 09:57  Tarzen  阅读(438)  评论(0)    收藏  举报