Link https://blog.csdn.net/u010158659/article/details/81671901
-u forces python not to use the IO buffer, use it at runtime
python -u main.py 2>&1 | tee xxx.log
Link https://blog.csdn.net/u010158659/article/details/81671901
python -u main.py 2>&1 | tee xxx.log