• 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

相关文章:

  • 2021-11-12
  • 2021-10-07
  • 2021-07-14
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
猜你喜欢
  • 2021-07-19
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-09-23
相关资源
相似解决方案