阅读背景:

命令提示符(Python)中的“等待”动画

来源:互联网 

I have a Python script which takes a long time to run. I'd quite like to have the command line output to have a little 'waiting' animation, much like the swirly circle we get in browsers for AJAX requests. Something like an output of a '\', then this is replaced by a '|', then '/', then '-', '|', etc, like the text is going round in circles. I am not sure how to replace the previous printed text in Python.I have a Python script which takes a long time




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: