python在同一行print

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Yonggie/article/details/89819319

在print里面加上\r

小例子

import time
print('\r12312',end="")
time.sleep(2)
print('\r####',end="")

猜你喜欢

转载自blog.csdn.net/Yonggie/article/details/89819319