Is there a way to clear your printed text in python?

后端 未结 5 1343
野的像风
野的像风 2020-12-10 16:12

I have wanted for a long time to find out how to clear something like print(\"example\") in python, but I cant seem to find anyway or figure anything out.

pr         


        
5条回答
  •  隐瞒了意图╮
    2020-12-10 16:48

    import time
    Dots = "."
    total = 0
    count = 0
    while count < 5:
        if total<1:
            print("[+]Saving" + Dots,end="")
        total+=1
        time.sleep(1)
        print(Dots,end="")
    

    This code works perfectly fine...

提交回复
热议问题