[Python] Afficher une ligne sans retour à ligne.

#!/usr/bin/python
import time
import sys
for x in range(10):
    print '\r%s'%x,
    sys.stdout.flush()
    time.sleep(1)

Comments are closed, but trackbacks and pingbacks are open.