擅长:python、mysql、java
<p>我认为可能是<code>input()</code>函数在末尾返回了一个新行。收集输入数据后,尝试添加<code>searchString = searchString.strip()</code>。
此外,在比较之前,您可能需要尝试将两者都转换为小写。在</p>
<p>同样,行<code>if(movie.startswith(searchString) == True):</code>可以写成<code>if movie.startswith(searchString):</code></p>