Home > other >  Why can't in the official Python IDLE on the shell cover output a line?
Why can't in the official Python IDLE on the shell cover output a line?

Time:09-24

I'm a Python beginners, in order to test the effect of covering the output on the screen of the shell, use the following code.
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 realized

CodePudding user response:

@ ruancan, oh, so the following three links of the so-called cover output refers to what? Please help me with the
https://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 -
  • Related