擅长:python、mysql、java
<p>查看文档中的<a href="https://docs.python.org/3.4/library/functions.html#input" rel="nofollow">^{<cd1>}</a>。您的代码应该是:</p>
<pre><code>import webbrowser
if input("What would you like to do? ") == 'AtariBreakout':
webbrowser.open_new(url)
</code></pre>
<p><em>对于python2.x,使用<code>raw_input</code>而不是<code>input</code>来获取字符串</em></p>