{"author_url":"https://blog.hatena.ne.jp/tsubakurame-1913/","version":"1.0","provider_url":"https://hatena.blog","author_name":"tsubakurame-1913","image_url":null,"width":"100%","blog_title":"\u9ce5\u306e\u5de3\u7bb1","url":"https://birdhouse.hateblo.jp/entry/2021/04/27/102025","description":"python\u3067\u3001\u4f8b\u3048\u3070\u3042\u308b\u95a2\u6570\u3092\uff11\u79d2\u9593\u9694\u3067\u5b9f\u884c\u3057\u305f\u3044\u6642\u3001\u521d\u5fc3\u8005\u304c\u4e00\u756a\u6700\u521d\u306b\u601d\u3044\u3064\u304f\u65b9\u6cd5\u3068\u3057\u3066 def task(): # \u4f55\u3089\u304b\u306e\u51e6\u7406 def main(): while True: task() time.sleep(1) \u3068\u3044\u3063\u305f\u66f8\u304d\u65b9\u304c\u3042\u308b\u3002\u3053\u306e\u66f8\u304d\u65b9\u3067\u3082\u201d\u304a\u3088\u305d\uff11\u79d2\u6bce\u201d\u306b\u306f\u51e6\u7406\u3057\u3066\u304f\u308c\u308b\u3002 \u3060\u304c\u3001task()\u306e\u51e6\u7406\u6642\u9593\u306a\u3069\u306b\u3053\u306e\u9593\u9694\u306f\u5927\u304d\u304f\u4f9d\u5b58\u3057\u3066\u304f\u308b\u3002 time.sleep(1)\u306fOS\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u306e\u7cbe\u5ea6\u306b\u3082\u3088\u308b\u3051\u3069\u3001\u307b\u307c1\u79d2sleep\u3057\u3066\u304f\u308c\u308b\u304ctask()\u306e\u5b9f\u884c\u6642\u9593\u306a\u3069\u304c\u8003\u616e\u3055\u308c\u3066\u306a\u3044\u308f\u3051\u3067\u3002 \u4eee\u306btask()\u306e\u5b9f\u884c\u6642\u9593\u306b0.1\u79d2\u304b\u304b\u308b\u306e\u3067\u3042\u308c\u30701.1\u79d2\u306e\u5468\u671f\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u2026","blog_url":"https://birdhouse.hateblo.jp/","title":"Python\u3067\u4e00\u5b9a\u9593\u9694\u3067\u51e6\u7406\u3092\u3055\u305b\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbirdhouse.hateblo.jp%2Fentry%2F2021%2F04%2F27%2F102025\" title=\"Python\u3067\u4e00\u5b9a\u9593\u9694\u3067\u51e6\u7406\u3092\u3055\u305b\u308b - \u9ce5\u306e\u5de3\u7bb1\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","categories":["Programing","Programing-Python"],"type":"rich","provider_name":"Hatena Blog","published":"2021-04-27 10:20:25"}