当前位置: 首页 > 工具软件 > UTF-8 CPP > 使用案例 >

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

欧阳何平
2023-12-01

 

/usr/bin/python2.7 /home/chaoxing/Documents/PycharmProjects/Keras/test04.py
  File "/home/chaoxing/Documents/PycharmProjects/Keras/test04.py", line 2
SyntaxError: Non-ASCII character '\xe5' in file /home/chaoxing/Documents/PycharmProjects/Keras/test04.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Process finished with exit code 1

在程序第一行添加

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

 

 类似资料: