Source From Here
Question
I want to show the progress of the download, but I want it to stay in the same position, such as:
How should I go about doing this?
How-To
You can use the Carriage Return "\r":
Question
I want to show the progress of the download, but I want it to stay in the same position, such as:
How should I go about doing this?
How-To
You can use the Carriage Return "\r":
- sys.stdout.write("Download progress: %d%% \r" % (progress) )
- sys.stdout.flush()
沒有留言:
張貼留言