编程语言
首页 > 编程语言> > python 提示“SyntaxError: Non-ASCII character ‘\xe8‘ in file...“

python 提示“SyntaxError: Non-ASCII character ‘\xe8‘ in file...“

作者:互联网

python 提示“SyntaxError: Non-ASCII character '\xe8' in file..."

编码问题

在文件第一行( 一定要是第一行 )添加

# -*- coding: utf-8 -*-

或者

# coding:utf-8

标签:...,Non,utf,python,coding,xe8
来源: https://blog.csdn.net/weixin_37241942/article/details/113282292