)</span> <span class="o">-</span><span class="mi">1</span>   <span class="c1"># 末行可能不完整，减一行，加大读取量</span>

            <span class="k">if</span> <span class="n">count</span> <span class="o">&gt;=</span> <span class="n">n</span><span class="p">:</span>  <span class="c1"># 如果读取到的行数&gt;=指定行数，则退出循环读取数据</span>
                <span class="k">break</span>
            <span class="k">else</span><span class="p">:</span>   <span class="c1">