您的位置: 首页 > IT文章 > 运行python程序时出现错误“SyntaxError: Non-ASCII character 'xe8' in file variable.py on line 1, but no encod” 运行python程序时出现错误“SyntaxError: Non-ASCII character 'xe8' in file variable.py on line 1, but no encod” 分类: IT文章 • 2022-04-25 18:36:48 在文件头部加上: # -*- coding: utf-8 -*-