{"title":"\u3010Python\u3011sys.exit()\u306f\u4f8b\u5916\u3092\u6295\u3052\u3066\u3044\u308b\u3060\u3051","published":"2019-07-02 21:00:00","blog_url":"https://hira98.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhira98.hatenablog.com%2Fentry%2F2019%2F07%2F02%2F210000\" title=\"\u3010Python\u3011sys.exit()\u306f\u4f8b\u5916\u3092\u6295\u3052\u3066\u3044\u308b\u3060\u3051 - \u4f1a\u793e\u8f9e\u3081\u3066\u30cb\u30fc\u30c8\u306b\u306a\u3063\u305f\u5143\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u96d1\u8a18\u5e33\" 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","author_name":"hira98","author_url":"https://blog.hatena.ne.jp/hira98/","height":"190","provider_name":"Hatena Blog","url":"https://hira98.hatenablog.com/entry/2019/07/02/210000","type":"rich","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/h/hira98/20190630/20190630161737.png","width":"100%","categories":[],"blog_title":"\u4f1a\u793e\u8f9e\u3081\u3066\u30cb\u30fc\u30c8\u306b\u306a\u3063\u305f\u5143\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u96d1\u8a18\u5e33","description":"\u3010\u7d50\u8ad6\u3011 sys.exit()\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5f37\u5236\u7d42\u4e86\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001BaseException\u4f8b\u5916\u3092\u6295\u3052\u3066\u3044\u308b\u3060\u3051\u3002 \u3088\u3063\u3066\u3001try\u30d6\u30ed\u30c3\u30af\u3067sys.exit()\u3092\u547c\u3076\u3068\u5f37\u5236\u7d42\u4e86\u3057\u306a\u3044\u3002 os._exit()\u3092\u547c\u3079\u3070try\u30d6\u30ed\u30c3\u30af\u3067\u3082\u5f37\u5236\u7d42\u4e86\u3067\u304d\u308b\u304c\u4e00\u822c\u7684\u306a\u66f8\u304d\u65b9\u3067\u306f\u306a\u3044\u3002 \u3010\u76ee\u6b21\u3011 \u306f\u3058\u3081\u306b \u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9 \u5b9f\u884c\u7d50\u679c \u53c2\u8003\u60c5\u5831 \u3055\u3044\u3054\u306b \u306f\u3058\u3081\u306b \u7d50\u8ad6\u306b\u66f8\u3044\u305f\u5185\u5bb9\u304c\u5168\u3066\u306a\u306e\u3067\u3001\u88dc\u8db3\u8aac\u660e\u306f\u7279\u306b\u3042\u308a\u307e\u305b\u3093\ud83d\ude05 \u306a\u306e\u3067\u3001\u7d50\u8ad6\u306b\u66f8\u3044\u305f\u5185\u5bb9\u304c\u6b63\u3057\u3044\u3053\u3068\u306e\u78ba\u8a3c\u3092\u5f97\u308b\u305f\u3081\u306b\u8a66\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3068\u7d50\u679c\u3060\u3051\u3092\u8f09\u305b\u3066\u3044\u307e\u3059\u3002 \u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9 import sys import os def test(n):\u2026","provider_url":"https://hatena.blog"}