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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -