擅长:python、mysql、java
<pre><code>import sys
sys.stdout.write('h')
sys.stdout.flush()
sys.stdout.write('m')
sys.stdout.flush()
</code></pre>
<p>您需要调用<a href="https://docs.python.org/library/io.html#io.IOBase.flush" rel="nofollow noreferrer">^{<cd1>}</a>,因为否则它会将文本保存在缓冲区中,而您看不到它。</p>