<p>我有以下python代码:</p>
<pre><code>print 'This is a simple game.'
input('Press enter to continue . . .')
print 'Choose an option:'
...
</code></pre>
<p>但当我按回车键时,会出现以下错误:</p>
<pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
File "E:/4.Python/temp.py", line 2, in <module>
input('Press enter to continue . . .')
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
</code></pre>
<p>另外,我正在Windows7上使用PythonIdle2.6版本。</p>