python - Changing Numbers In the Same ln and col -


i have been trying while find way on python move 1 9 on same line , column.

i want output this: 1 clear of screen print 2 in same place 1.

is possible??

p.s. noob python.

import time import sys  in range(1, 10):   sys.stdout.write(str(i))   sys.stdout.flush()   time.sleep(0.5)   sys.stdout.write('\b') 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -