Discuss / Python / 卡在第一步了!求教!

卡在第一步了!求教!

David_Fnck

#1 Created at ... [Delete] [Delete and Lock User]

Mac系统,按照GitHub上的指导配置了Homebrew,安装了Python2.7和3.7(这儿其实也不太懂有什么好处). 我按照课程编写了如下命令:

hello.py

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.

但是我怎么修改成纯文本格式?求教,谢谢,不想倒在开始的路上!


  • 1

Reply