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

后端 未结 5 1344
野的像风
野的像风 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:58

    Well; i have a temporary way:-

    print('Hey', end = '')
    
    for i in range(4):
        print('\b', end = '')
    print('How is your day?')
    

提交回复
热议问题