2012-02-20 62 views

回答

1

看着the source,我看到它只是上升。要開始在特定的值,使用:

for i in progress.dots(range(your_start_value)): pass 

要退格,嘗試:

sys.stderr.write(' \b\b' * amount); sys.stderr.flush() 

這可能不會在不使用colorama模塊的工作定位功能,在這種情況下,你會更好只需簡單地寫(「=」* percent_done +「」* percent_left)。