美文网首页我爱编程
SyntaxError: Non-ASCII character

SyntaxError: Non-ASCII character

作者: 默写年华Antifragile | 来源:发表于2018-08-09 15:17 被阅读21次

SyntaxError: Non-ASCII character '\xe6' in file tensorflow.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

存在非ASCII码表示的文字,如中文等,在文件头添加 UTF-8编码识别中文

#_*_coding: utf-8 _*_    

相关文章

网友评论

    本文标题:SyntaxError: Non-ASCII character

    本文链接:https://www.haomeiwen.com/subject/ndfcbftx.html