读取文件之后使用这两个方法将字符转译:encode('utf-8').decode('utf-8-sig')

以下文章包含了解决的方法和案例

夏的博客:https://blog.csdn.net/xiazhipeng1000/article/details/79720391