1. UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0–9: ordinal not in range(128)
设置环境变量: export PYTHONIOENCODING=utf-8
python3 中文日志记录
python3 下logging记录中文日志要使用 encoding 参数
设置环境变量: export PYTHONIOENCODING=utf-8
python3 下logging记录中文日志要使用 encoding 参数

被折叠的 条评论
为什么被折叠?