我想使用 SublimeText2 作为 IDE 在 Python 中开发应用程序。
我有以下问题:
当我创建一个新文件时,将其保存为 python 并执行 Tools -> Build System -> Python CTRL + B
我收到此错误:
Please type your name and press enter: Traceback (most recent call last):
File "/Users/strielok/Desktop/hello.py", line 1, in <module>
personsname = raw_input("Please type your name and press enter: ")
EOFError: EOF when reading a line
[Finished]
这是程序的代码:
personsname = raw_input("Please type your name and press enter: ")
print "Hello " +personsname
但是,当我从终端(我在 Mac 上)运行此代码时,它运行良好。
知道问题可能是什么吗?