Python3 import time for i in range(20 ) print ( " %d\r " % i, end= ‘‘ ) Python2 from __future__ import print_function import time for i in range(20 ) print ( " %d\r " % i, end= ‘‘ ) 参考文献: https://blog.csdn.net/unknownli/ar
- Python3
import time for i in range(20) print("%d\r" % i, end=‘‘)
- Python2
from __future__ import print_function import time for i in range(20) print("%d\r" % i, end=‘‘)
参考文献:
https://blog.csdn.net/unknownli/article/details/9930729