擅长:python、mysql、java
<p>循环中的代码“Heat”将一直打印:</p>
<pre><code>Heat = 0
while True:
Heat +=1
print ('Heat: {heat}'.format(heat=Heat))
</code></pre>
<p>在这种情况下,代码会从循环中“加热”,并将打印一次:</p>
<pre><code>Heat = 0
print ('Heat:')
while True:
Heat +=1
print ('{heat}'.format(heat=Heat))
</code></pre>
<p>如果需要更多换行符,请使用'\n'字符(严格取决于操作系统)。你知道吗</p>