Python Progress Bar

后端 未结 30 2634
礼貌的吻别
礼貌的吻别 2020-11-22 06:13

How do I use a progress bar when my script is doing some task that is likely to take time?

For example, a function which takes some time to complete and returns

30条回答
  •  一个人的身影
    2020-11-22 06:55

    Use this library: fish (GitHub).

    Usage:

    >>> import fish
    >>> while churning:
    ...     churn_churn()
    ...     fish.animate()
    

    Have fun!

提交回复
热议问题