<p><strong>对于Python 3</strong></p>
<pre class="lang-py prettyprint-override"><code>import time
starting_text = 'Welcome to CHOOSE YOUR OWN ADVENTURE!'
new_starting_text = list(starting_text)
for x in new_starting_text:
print(x, end='')
time.sleep(.1)
</code></pre>
<p>输出</p>
<blockquote>
<p>Welcome to CHOOSE YOUR OWN ADVENTURE!</p>
</blockquote>
<p><strong>对于Python 2</strong></p>
<pre class="lang-py prettyprint-override"><code>from __future__ import print_function
import time
starting_text = 'Welcome to CHOOSE YOUR OWN ADVENTURE!'
new_starting_text = list(starting_text)
for x in new_starting_text:
print(x, end='')
time.sleep(.1)
</code></pre>
<p>输出</p>
<blockquote>
<p>Welcome to CHOOSE YOUR OWN ADVENTURE!</p>
</blockquote>
<p>从<code>help(print)</code>:</p>
<pre class="lang-py prettyprint-override"><code>print(...)
print(value, ..., sep='', end='\n', file=sys.stdout)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
sep: string inserted between values, default a space.
end: string appended after the last value, default a newline.
</code></pre>