擅长:python、mysql、java
<p>以下是我对你想要达到的目标的猜测:</p>
<pre><code>for col in file:
count+= 1
if col[1] in range(0, 1000):
count += col[2]
</code></pre>
<p>它使用<a href="http://en.wikipedia.org/wiki/Zero-based_numbering" rel="nofollow">0 based</a>列索引并检查该值是否在0-999范围内。在</p>
<p>使用这样的射程不是很有效。我会这样检查:</p>
^{pr2}$