当我尝试在python 2.7中处理'æøå'时,会引发错误
# coding: utf-8
q = raw_input("Please enter a word: ")
print q
我原以为是“æøå”,但得到了:
Traceback (most recent call last):
File "Testing.py", line 2, in <module>
q = input("Please enter a word: ")
File "<string>", line 1
æøå
^
SyntaxError: invalid syntax