UnicodeEncodeError: 'ascii' codec can't encode characters in position 66-67: ordinal not in range(12

在樹莓派上執行一個python文件,把日誌寫到log文件裏面,報瞭如下錯誤 [email protected]:~/test/test_download/aiot_code $ python3 test_logger.py sys.getdefaultencoding():utf-8 --- Logging error --- Traceback (most recent call last):
相關文章
相關標籤/搜索