和提示答案一样为什么报错?
x1 = 1
d = 3
n = 100
x100 = d*(n-1)+x1
s = (x1+x100)*n/2
print s
File "index.py", line 4
SyntaxError: Non-ASCII character '\xef' in file index.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details