我正在尝试开始学习 Python,但从第一步开始我就迷糊了。
我开始使用 Hello, World
,但是当我尝试运行脚本时,我得到:
Syntax Error: Non-UTF-8 code starting with '
\xe9
' in fileC:\Documents and Settings\Home\workspace\Yassine frist stared\src\firstModule.py
on line 5 but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details.
最佳答案
添加到第一行是
# -*- coding: utf-8 -*-
关于python - 我的 Python 第一步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14041020/