Python3.1和Sublime Text 2

2024-05-23 14:31:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我想使用sublimitext2作为IDE来开发Python中的应用程序。

我有以下问题:

创建新文件时,请将其另存为python并使用工具->;构建系统->;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上),它工作得很好。

知道有什么问题吗?


Tags: andnamegt应用程序inputyourrawtype