擅长:python、mysql、java
<p>从<a href="http://learnpythonthehardway.org/book/ex35.html" rel="nofollow">the code for this exercise</a>来看,您一定是在其中一次尝试中拼错了“left”,请注意,这可能是一些不必要的大写字母或开头或结尾处的意外空格。在</p>
<p>以下是相关代码:</p>
<pre><code>def start():
print "You are in a dark room."
print "There is a door to your right and left."
print "Which one do you take?"
next = raw_input("> ")
if next == "left":
bear_room()
elif next == "right":
cthulhu_room()
else:
dead("You stumble around the room until you starve.")
</code></pre>
<p>如果您准确地键入“left”并按enter键,则应始终输入bear room。在</p>