📜  如何在 python 脚本运行时显示进度微调器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:30.501000             🧑  作者: Mango

代码示例1
from yaspin import yaspin

with yaspin(text="Spinner!") as spinner:
    # Support all basic termcolor text colors
    colors = ("red", "green", "yellow", "blue", "magenta", "cyan", "white")

    for c in colors:
        spinner.color = c
        spinner.text = c
        time.sleep(0.5)

    spinner.ok("✅ Done")