[Python] Why does my last printed line disappear when using \r in VS Code terminal

Discussão em 'Python' iniciado por Stack, Março 29, 2025.

  1. Stack

    Stack Membro Participativo

    why in this code in the vs code the last output cleared I think we should have "...." ??

    from time import sleep
    c=1
    while c<5 :
    print("."*c+"\r",end='')
    sleep(2)
    c+=1


    I think the last output should be "...."

    Continue reading...

Compartilhe esta Página