擅长:python、mysql、java
<p>因此,唯一可能发生的方法是,无法到达递增a、b、c和d的代码。</p>
<p>这有几个原因:</p>
<ul>
<li><code>inFile</code>为空,因此整个for循环从未进入其主体</li>
<li><code>len(words)</code>为0,因此for循环永远不会进入其主体</li>
<li><code>len(keywords)</code>为0,因此for循环永远不会进入其主体</li>
<li><code>timezone</code>的值不是您测试的值</li>
</ul>
<p><code>words</code>最初是<code>[]</code>,因此如果向其添加内容的循环从未运行,则其长度可以保持为0。</p>
<p>从这里,我们不可能看到其中的哪一个发生了,但是对于你来说,用一些打印的声明或类似的东西应该很容易。</p>