<p>我从<a href="https://sololearn.com" rel="nofollow noreferrer">https://sololearn.com</a>开始学习python(不知道那是不是一个学习python的好地方,但它看起来很好),我想知道它们是否类似于(这只是一个不识字的例子)</p>
<pre><code>x = input("What is your age\?")
if x > 18:
print("You are welcome")
elif x < 18:
print("You are underaged, try again later")
</code></pre>
<p>如果我试着在空闲状态下运行它,似乎会给出一个无效语法的错误。有什么想法吗</p>