[root@node29 ~]# vim ./test.py #! /usr/bin/env python #coding: utf-8 from __future__ import print_function import sys import time for i in range(0, 100): print('progress: %d' % i, end='\r') sys.stdout.flush() time.sleep(1)