{"provider_name":"Hatena Blog","url":"https://hayataka2049.hatenablog.jp/entry/2020/04/26/204907","provider_url":"https://hatena.blog","blog_title":"\u9759\u304b\u306a\u308b\u540d\u8f9e","published":"2020-04-26 20:49:07","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhayataka2049.hatenablog.jp%2Fentry%2F2020%2F04%2F26%2F204907\" title=\"Python\u3067\u9045\u3044\u30b5\u30d6\u30d7\u30ed\u30bb\u30b9\u3092\u30b9\u30ec\u30c3\u30c9\u4e26\u5217\u3067\u305f\u304f\u3055\u3093\u53e9\u304f - \u9759\u304b\u306a\u308b\u540d\u8f9e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","type":"rich","description":"\u6982\u8981 \u3044\u3064\u4f7f\u3046\u3093\u3060\u3068\u8a00\u308f\u308c\u3066\u3057\u307e\u3046Python\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u3059\u304c\u3001Python\u306e\u5916\u3067\u9045\u3044\u539f\u56e0\u304c\u3042\u308b\u3068\u304d\u306f\u9ad8\u901f\u5316\u306b\u5a01\u529b\u3092\u767a\u63ee\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002\u8a00\u8a9e\u306fbash\u3067\u3059\u3002 #!/bin/bash sleep 3 echo \"hoge\" \u7279\u306b\u3072\u306d\u308a\u306f\u3042\u308a\u307e\u305b\u3093\u3002slow_command.sh\u3068\u3067\u3082\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3059\u3002 Python\u304b\u3089\u547c\u3076\u3068\u3001 import subprocess for _ in range(5): result = subprocess.run([\"./slow_command.sh\"], stdout=subprocess.PIPE) print(result.stdo\u2026","image_url":null,"width":"100%","author_url":"https://blog.hatena.ne.jp/hayataka2049/","height":"190","blog_url":"https://hayataka2049.hatenablog.jp/","title":"Python\u3067\u9045\u3044\u30b5\u30d6\u30d7\u30ed\u30bb\u30b9\u3092\u30b9\u30ec\u30c3\u30c9\u4e26\u5217\u3067\u305f\u304f\u3055\u3093\u53e9\u304f","author_name":"hayataka2049","categories":["python","Tips","threading"]}