擅长:python、mysql、java
<p>这是因为<code>in</code>检查字符是否可以在字符串中的任何位置找到。当你用“坏”字的时候,它可以。如果要检查第一个字符,请使用<code>Finder[0]</code></p>
<pre><code>MyInput = input("What word do you want to find out if the determiner is a/an?")
Finder = list(MyInput)
if (Finder[0].lower() == 'a'):
print ("Start with an.")
else:
print ("Start with a.")
</code></pre>