How to delete characters in python console? [closed]


Something like in java that I think is with a \b but in python

asked by user7090759 30.10.2016 в 19:24

1 answer


In python27 you can use \ b in a string and it clears the previous character.

print "cara\bcter\b " 

Result in cmd or in the python console:   carcte

answered by 30.10.2016 в 20:34