{"url":"https://tokibito.hatenablog.com/entry/20151002/1443793867","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokibito.hatenablog.com%2Fentry%2F20151002%2F1443793867\" title=\"Python\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b - \u504f\u3063\u305f\u8a00\u8a9e\u4fe1\u8005\u306e\u5782\u308c\u6d41\u3057\" 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","blog_url":"https://tokibito.hatenablog.com/","type":"rich","published":"2015-10-02 22:51:07","author_name":"nullpobug","provider_name":"Hatena Blog","title":"Python\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b","provider_url":"https://hatena.blog","categories":["Python"],"height":"190","description":"Python\u3067\u30d7\u30ed\u30b0\u30e9\u30e0(\u30d7\u30ed\u30bb\u30b9)\u306e\u7d42\u4e86\u30b3\u30fc\u30c9(\u7d42\u4e86\u30b9\u30c6\u30fc\u30bf\u30b9)\u3092\u6307\u5b9a\u3057\u3066\u7d42\u4e86\u3059\u308b\u306b\u306f\u3001sys.exit\u306e\u5f15\u6570\u306b\u6570\u5024\u3092\u6307\u5b9a\u3059\u308b\u3002 \u8a66\u3057\u305f\u306e\u306fPython3.4\u3002 29.1. sys \u2014 \u30b7\u30b9\u30c6\u30e0\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u95a2\u6570 \u2014 Python 3.4.3 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 \u30b3\u30fc\u30c9 main.py import sys def main(): # \u7d42\u4e86\u30b3\u30fc\u30c9123\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d42\u4e86\u3059\u308b sys.exit(123) if __name__ == '__main__': main() \u5b9f\u884c\u7d50\u679c $ python3.4 main.py $ echo $? 123 \u30b8\u30e7\u30d6\u7ba1\u7406(\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9)\u3092\u884c\u3046\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u304b\u3089\u2026","image_url":null,"author_url":"https://blog.hatena.ne.jp/nullpobug/","blog_title":"\u504f\u3063\u305f\u8a00\u8a9e\u4fe1\u8005\u306e\u5782\u308c\u6d41\u3057","width":"100%"}