{"version":"1.0","published":"2019-06-13 23:21:12","description":"\u4eca\u65e5\u306f\u3001python \u306e try-except \u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u305f\u3002 \u4f8b1) try: print(a) except ValueError as ex: print(\"Error: {}\".format(ex)) finally: print(\"\u30d5\u30a1\u30a4\u30ca\u30ea\u30fc\uff01\") except \u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u4f8b\u5916\u767a\u751f\u6642\u306e\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308b\u3002 as \u301c\u3068\u3059\u308b\u3053\u3068\u3067\u4f8b\u5916\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 finally \u306b\u306f\u4f8b\u5916\u306e\u767a\u751f\u306b\u95a2\u308f\u3089\u305a\u3001\u5fc5\u305a\u5b9f\u884c\u3059\u308b\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308b\u3002 \u4f8b2) try: print(1) except ValueError: print(\"ValueError!\") except OsError: \u2026","author_name":"uc_ebuc","title":"python: try-except","url":"https://cufl.hateblo.jp/entry/2019/06/13/232112","height":"190","provider_name":"Hatena Blog","categories":["python3","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcufl.hateblo.jp%2Fentry%2F2019%2F06%2F13%2F232112\" title=\"python: try-except - \u96d1\u591a\u306a\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>","provider_url":"https://hatena.blog","width":"100%","author_url":"https://blog.hatena.ne.jp/uc_ebuc/","type":"rich","image_url":null,"blog_title":"\u96d1\u591a\u306a\u30d6\u30ed\u30b0","blog_url":"https://cufl.hateblo.jp/"}