擅长:python、mysql、java
<p>来自<a href="https://stackoverflow.com/questions/4009672/python-trailing-comma-after-print-executes-next-instruction">Python trailing comma after print executes next instruction</a>:</p>
<ol>
<li>在Python2.x中,print语句中的尾随<code>,</code>防止发出新行。</li>
<li>标准输出是行缓冲的。所以在发出新行之前不会打印“Hi”。</li>
</ol>