{"author_name":"kabegiwakun","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.kabegiwablog.com%2Fentry%2F2018%2F10%2F02%2F140000\" title=\"Python\u306esys.exit()\u3067\u9014\u4e2d\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d42\u4e86\u3055\u305b\u308b - \u304b\u3079\u304e\u308f\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Python\u306esys.exit()\u3067\u9014\u4e2d\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d42\u4e86\u3055\u305b\u308b","description":"\u6982\u8981 Python\u3067sys.exit()\u3092\u3064\u304b\u3063\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u9014\u4e2d\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d42\u4e86\u3055\u305b\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u30b9\u30af\u30ea\u30d7\u30c8\u4f8b \u307e\u305a\u6700\u521d\u306bimport sys\u3092\u3057\u3066\u4e0a\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u306e\u3046\u3048\u3067sys.exit()\u3068\u66f8\u3044\u3066\u3042\u3052\u308b\u3053\u3068\u3067\u305d\u308c\u304c\u5b9f\u884c\u3055\u308c\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u9014\u4e2d\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002 #!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys for i in range(1,5): print(i) if i == 3: print('\u3053\u3053\u3067exit\u3059\u308b') sys.exit() print('\u3053\u308c\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044'\u2026","type":"rich","height":"190","categories":["Python"],"published":"2018-10-02 14:00:00","provider_name":"Hatena Blog","blog_title":"\u304b\u3079\u304e\u308f\u30d6\u30ed\u30b0","author_url":"https://blog.hatena.ne.jp/kabegiwakun/","provider_url":"https://hatena.blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kabegiwakun/20180115/20180115220028.png","blog_url":"https://www.kabegiwablog.com/","url":"https://www.kabegiwablog.com/entry/2018/10/02/140000","width":"100%"}