name = raw_input('please enter your name: ')
print 'hello,', name
在终端运行的时候,出现了这样的错误:
\Documents\sublime>python hello. py
File "<stdin>", line 1
\Documents\sublime>python hello. py
^
SyntaxError: unexpected character after line continuation character
我查了Google论坛,说:
Looks like your views.py file was saved in RTF format instead of
plain-text. Re-save it in plain-text as .py and it should at
least take care of this error.
David_Fnck
Mac系统,按照GitHub上的指导配置了Homebrew,安装了Python2.7和3.7(这儿其实也不太懂有什么好处). 我按照课程编写了如下命令:
hello.py
name = raw_input('please enter your name: ') print 'hello,', name
在终端运行的时候,出现了这样的错误:
我查了Google论坛,说: Looks like your views.py file was saved in RTF format instead of plain-text. Re-save it in plain-text as .py and it should at least take care of this error.
但是我怎么修改成纯文本格式?求教,谢谢,不想倒在开始的路上!