解决办法1: file = open('order.log','r', encoding='UTF-8') 解决办法2: file = open('order.log','rb') 转载于:https://www.cnblogs.com/syl1314/p/8085665.html