擅长:python、mysql、java
<p>问题是,您永远不会更改while循环中<code>start</code>或<code>end</code>的值。因此,无论它们有什么值允许您进入循环,在每次迭代中都是相同的。你知道吗</p>
<p>如果不彻底改变你的逻辑,我猜你可能会想做如下事情:</p>
<pre><code>while start or not end:
try:
int(s[0])
print s[7]
except ValueError:
end = True
start = False
</code></pre>