📅  最后修改于: 2022-03-11 14:45:28.750000             🧑  作者: Mango
"\033[F" – move cursor to the beginning of the previous line
"\033[A" – move cursor up one line
Example:
import sys
sys.stdout.write("\033[F")
sys.stdout.write("This line is replaced one")
sys.stdout.write("\033[A")
sys.stdout.write("More text is added to the previous line")
sys.stdout.flush()