Non-UTF-8 code starting with '\xe5'

在python开发中,明明已经使用了UTF-8的编码但是依旧报了这个错误:

Non-UTF-8 code starting with '\xe5'

需要在文件头部添加

# -*- coding: utf-8 -*-
发布了46 篇原创文章 · 获赞 6 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/github_34790294/article/details/104366990