{"type":"rich","author_url":"https://blog.hatena.ne.jp/podhmo/","blog_title":"podhmo's diary","author_name":"podhmo","description":"\u305f\u307e\u306b\u6b32\u3057\u304f\u306a\u308b\u306e\u3067\u30e1\u30e2\u3002\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30af\u30a8\u30f3\u30b9\u3067N\u884c\u623b\u3063\u305f\u884c\u982d\u306b\u79fb\u52d5\u3057\u3066\u73fe\u5728\u306e\u30ab\u30fc\u30bd\u30eb\u304b\u3089\u7aef\u672b\u306e\u7d42\u7aef\u307e\u3067\u30af\u30ea\u30a2\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u3060\u3051\u3002 progress bar \u3061\u3087\u3063\u3068\u3057\u305f\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u306e\u8868\u793a\u3002\u3075\u3064\u3046\u306b\u3084\u308b\u5206\u306b\u306ftqdm\u3092\u4f7f\u3063\u305f\u307b\u3046\u304c\u304a\u624b\u8efd\u305d\u3046\u3002 import time n = 3 for i in range(11): if i > 0: print(f\"\\033[{n}F\\033[J\", end=\"\") for j in range(n): print(f\"{i * 10: 2}% |{'\u2588\u2588\u2588\u2588' * i}\") time.sleep(0.5) print(\"ok\") \u5b9f\u2026","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/p/podhmo/20190403/20190403093938.gif","published":"2019-04-03 09:35:42","url":"https://pod.hatenablog.com/entry/2019/04/03/093542","provider_url":"https://hatena.blog","categories":["python","memo","cli"],"provider_name":"Hatena Blog","height":"190","title":"python\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u305b\u305a\u306b\u3061\u3087\u3063\u3068\u3057\u305fspinner\u3068progress bar\u3092\u4f5c\u308b(CLI)","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2019%2F04%2F03%2F093542\" title=\"python\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u305b\u305a\u306b\u3061\u3087\u3063\u3068\u3057\u305fspinner\u3068progress bar\u3092\u4f5c\u308b(CLI) - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://pod.hatenablog.com/","version":"1.0"}