首页
技术
登录
6mi
u
盘
搜
搜 索
技术
SyntaxError: Non-ASCII character ‘xe6‘ in file test1.py on line 1, but no encoding declared; see ht
SyntaxError: Non-ASCII character ‘xe6‘ in file test1.py on line 1, but no encoding declared; see ht
技术
2022-07-15
43
Python在默认状态下不支持源文件中的编码所致。解决方案如下:
在文件头部添加如下注释码:
coding= 例如,可添加# coding=utf-8
转载请注明原文地址:https://ipadbbs.8miu.com/read-27097.html
最新回复
(
0
)