擅长:python、mysql、java
<p>看起来您在<code>if</code>语句的主体后面输入了一个空行。这向交互式编译器提示您已经完全使用了块,因此不需要任何<code>elif</code>/<code>else</code>块。尝试输入与此完全相同的代码,并且在每行之后只按enter<em>一次</em>:</p>
<pre><code>if guess == number:
print('Congratulations! You guessed it.')
elif guess < number:
pass # Your code here
else:
pass # Your code here
</code></pre>