一、参考代码
for i in range(100):
time.sleep(0.4)
# print (i)
print('\r', 'count:' + str(i), end='---') # 这种方式可以避免输出内容刷屏
标签:end,python,0.4,---,刷屏,sleep,清空,print,pycharm From: https://blog.51cto.com/u_16247750/7391640
for i in range(100):
time.sleep(0.4)
# print (i)
print('\r', 'count:' + str(i), end='---') # 这种方式可以避免输出内容刷屏
标签:end,python,0.4,---,刷屏,sleep,清空,print,pycharm From: https://blog.51cto.com/u_16247750/7391640