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