赞
踩
1.检查文件是否是utf-8编码,可以用notepad++,在左下角查看
2.l在decode里添加“ignore”参数,line.decode("utf-8", "ignore"),
3.中文将utf-8改成gbk