The import time
For I in range (10) :
Time. Sleep (0.2)
Print (" \ "r" Loading... ". The format (I) + STR (I), end="")
My intention is to output on the screen, the original this line of the output of the second cover, in the original place to output the second line,
But, in fact, do not have this effect, the output is like this:
Loading... 0
Loading... 1
Loading... 2
Loading... 3
Loading... 4
Loading... 5
Loading... 6
Loading... 7
Loading... 8
Loading... 9
The problem is where is it?
CodePudding user response:
In situ print? Without this feature, idle cannot achieve, only by pyqt or wx these graphics library can be realizedCodePudding user response:
@ ruancan, oh, so the following three links of the so-called cover output refers to what? Please help me with thehttps://blog.csdn.net/qq_29007291/article/details/83029866? Depth_1 -
https://blog.csdn.net/qq_35975447/article/details/88072657? Depth_1 -
https://blog.csdn.net/aaalswaaa1/article/details/107363310/? Depth_1 -