擅长:python、mysql、java
<p>我不知道你用这个循环得到了什么:</p>
<pre><code>for i in range(0):
if (Bal * Int) == Tar:
print '1'
else:
counter + 1
</code></pre>
<ol>
<li><code>range(0)</code>是一个空列表,因此循环根本不会执行。在</li>
<li><code>counter + 1</code>只计算一个以上的计数器,它不会递增counter,您可能是说<code>counter += 1</code></li>
<li>循环中没有任何东西在每次迭代时都会发生变化,因此如果您进入其中,它将是一个无限循环。在</li>
</ol>