擅长:python、mysql、java
<h2>Python2</h2>
<p>我喜欢以下几点:</p>
<pre><code>print 'Downloading File FooFile.txt [%d%%]\r'%i,
</code></pre>
<p>演示:</p>
<pre><code>import time
for i in range(100):
time.sleep(0.1)
print 'Downloading File FooFile.txt [%d%%]\r'%i,
</code></pre>
<h2>Python3</h2>
<pre><code>print('Downloading File FooFile.txt [%d%%]\r'%i, end="")
</code></pre>
<p>演示:</p>
<pre><code>import time
for i in range(100):
time.sleep(0.1)
print('Downloading File FooFile.txt [%d%%]\r'%i, end="")
</code></pre>