首页 > Python2.7.8 一直报错,打开任何程序都报错,文件目录正确

Python2.7.8 一直报错,打开任何程序都报错,文件目录正确

>>> python hello.py
  File "<stdin>", line 1
    python helloworld.py
                    ^
SyntaxError: invalid syntax

name.py

name = raw_input('please enter you name')
print 'hello',name

hello.py

print 'hello world!!!'

不要用windows


我也遇到这种问题 文件保存在f盘,小三角提示在冒号上。初次接触python,求大神指点。


确认文件所在目录名不要是“中文”。


根据你的描述猜测是这样子的, 不过怎么可以这样运行呢,

应该这样的才可以

【热门文章】
【热门文章】