{"id":23044,"date":"2017-05-15T20:17:59","date_gmt":"2017-05-15T11:17:59","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=23044"},"modified":"2024-05-06T11:42:22","modified_gmt":"2024-05-06T02:42:22","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91try-except%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/23044","title":{"rendered":"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01"},"content":{"rendered":"\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066\u30a8\u30e9\u30fc\u306f\u3064\u304d\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>Python\u3067\u306ftry-except\u3067\u300c\u4f8b\u5916\u51e6\u7406\uff08exception\uff09\u300d\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001<b>\u4e88\u671f\u305b\u306c\u30a8\u30e9\u30fc\u3092\u672a\u7136\u306b\u9632\u3050<\/b>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f<br><div class=\"box01\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>\u30a8\u30e9\u30fc\u3068\u4f8b\u5916\u306e\u9055\u3044\u306b\u3064\u3044\u3066<\/b><\/li>\n\n\n\n<li><b>try-except\u306e\u57fa\u672c\u7684\u306a\u4f7f\u7528\u65b9\u6cd5<\/b><\/li>\n<\/ul>\n\n\n<\/div>\n\n\n\n<p>\u3068\u3044\u3063\u305f\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089<br><div class=\"box01\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>raise\u3068pass\u306b\u3064\u3044\u3066<\/b><\/li>\n\n\n\n<li><b>else\u3068finally\u306b\u3064\u3044\u3066<\/b><\/li>\n\n\n\n<li><b>\u4f8b\u5916\u304c\u8907\u6570\u3042\u308b\u5834\u5408<\/b><\/li>\n<\/ul>\n\n\n<\/div>\n\n\n\n<p>\u306a\u3069\u3068\u3044\u3063\u305f\u3088\u308a\u5fdc\u7528\u7684\u306a\u5185\u5bb9\u306b\u95a2\u3057\u3066\u3082\u3001\u3084\u3055\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><span class=\"swl-fz u-fz-xl\"><mark class=\"has-inline-color has-swl-main-color\">Python\u521d\u5fc3\u8005<\/mark>\u306b\u304a\u3059\u3059\u3081\u306e \u7121\u6599\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b5\u30a4\u30c83\u9078<\/span><\/strong><\/p>\n\n\n<div class=\"c-scrollHint sp_\"><span>\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059 <i class=\"icon-more_arrow\"><\/i><\/span><\/div>\n<figure data-table-scrollable=\"sp\" class=\"wp-block-table is-all-centered\"><table style=\"--table-width:700px;\" class=\"has-fixed-layout\"><thead style=\"--thead-color--bg:#1e4e95;--thead-color--txt:var(--swl-text_color--white)\"><tr><th class=\"has-text-align-center\" data-align=\"center\"><\/th><th class=\"has-text-align-center\" data-align=\"center\">1\u4f4d\uff1a\u4f8d\u30c6\u30e9\u30b3\u30e4<\/th><th class=\"has-text-align-center\" data-align=\"center\">2\u4f4d\uff1aProgate<\/th><th class=\"has-text-align-center\" data-align=\"center\">3\u4f4d\uff1a\u30c9\u30c3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/th><\/tr><\/thead><tbody style=\"--tbody-th-color--bg:var(--color_deep02);--tbody-th-color--txt:var(--swl-text_color--white)\"><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong><span class=\"swl-fz u-fz-s\">\u30b5\u30a4\u30c8\u540d<\/span><\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/terakoya.sejuku.net\/?cid=pr_earningsite_plus\"><img decoding=\"async\" width=\"1200\" height=\"1200\" class=\"wp-image-240857\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/07\/bnr44_1200_1200-1.png\" alt=\"\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/07\/bnr44_1200_1200-1.png 1200w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/07\/bnr44_1200_1200-1-300x300.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/07\/bnr44_1200_1200-1-640x640.png 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/07\/bnr44_1200_1200-1-150x150.png 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a>\n<span class=\"c-reviewStars\"><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/prog-8.com\/\"><img decoding=\"async\" class=\"wp-image-227111\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2024\/01\/Progate900_900-1.png\" alt=\"\"><\/a>\n<span class=\"c-reviewStars\"><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-half\"><\/i><\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/dotinstall.com\/\" data-type=\"link\" data-id=\"https:\/\/dotinstall.com\/\"><img decoding=\"async\" class=\"wp-image-227120\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2024\/01\/4eec9545861893a9c17b90cbae8d85a2.png\" alt=\"\"><\/a>\n<span class=\"c-reviewStars\"><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-empty\"><\/i><\/span><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u5b66\u3079\u308b\u5185\u5bb9<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-fz u-fz-xs\"><span class=\"swl-inline-color has-swl-main-color\"><strong>Python<\/strong><\/span>\u3001Java\u3001<span class=\"swl-inline-color has-black-color\">HTML\/CSS\u3001JavaScript<\/span>\u3001jQuery\u3001Bootstrap\u3001PHP\u3001Laravel\u3001Ruby\u3001Ruby on Rails\u3001WordPress\u3001Cloud9\u3001Git\u3001AWS \u3001ChatGPT\u3001Web\u30c7\u30b6\u30a4\u30f3\u306a\u3069<\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-fz u-fz-xs\"><span class=\"swl-inline-color has-swl-main-color\"><strong>Python<\/strong><\/span>\u3001Java<span class=\"swl-inline-color has-black-color\">\u3001HTML\/CSS\u3001JavaScript<\/span>\u3001PHP\u3001Ruby\u3001Go\u3001Git\u3001SQL \u306a\u3069<\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-fz u-fz-xs\"><span class=\"swl-inline-color has-swl-main-color\"><strong>Python<\/strong><\/span>\u3001<span class=\"swl-inline-color has-black-color\">Java\u3001HTML\/CSS\u3001JavaScript\u3001<\/span>Ruby\u3001C\u8a00\u8a9e \u306a\u3069<\/span><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u8cea\u554f<\/strong>\n<strong>\u76f8\u8ac7\u30b5\u30dd\u30fc\u30c8<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\" data-has-cell-bg=\"1\" data-has-cell-icon=\"m-bg\"><span data-icon=\"doubleCircle\" data-icon-size=\"m\" data-icon-type=\"bg\" aria-hidden=\"true\" class=\"swl-cell-bg\">&nbsp;<\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\" data-has-cell-bg=\"1\" data-has-cell-icon=\"m-bg\"><span data-icon-type=\"bg\" data-icon=\"close\" data-icon-size=\"m\" aria-hidden=\"true\" class=\"swl-cell-bg\">&nbsp;<\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\" data-has-cell-bg=\"1\" data-has-cell-icon=\"m-bg\"><span data-icon-type=\"bg\" data-icon=\"triangle\" data-icon-size=\"m\" aria-hidden=\"true\" class=\"swl-cell-bg\">&nbsp;<\/span><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u7df4\u7fd2\u554f\u984c\u306e\u6570<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\" data-has-cell-bg=\"1\" data-has-cell-icon=\"m-bg\"><span data-icon-type=\"bg\" data-icon=\"doubleCircle\" data-icon-size=\"m\" aria-hidden=\"true\" class=\"swl-cell-bg\">&nbsp;<\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\" data-has-cell-bg=\"1\" data-has-cell-icon=\"m-bg\"><span data-icon-type=\"bg\" data-icon=\"circle\" data-icon-size=\"m\" aria-hidden=\"true\" class=\"swl-cell-bg\">&nbsp;<\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\" data-has-cell-bg=\"1\" data-has-cell-icon=\"m-bg\"><span data-icon-type=\"bg\" data-icon=\"triangle\" data-icon-size=\"m\" aria-hidden=\"true\" class=\"swl-cell-bg\">&nbsp;<\/span><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u7279\u5fb4<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-fz u-fz-xs\"><span data-icon=\"check\" class=\"swl-inline-list\"><strong><span class=\"swl-inline-color has-swl-main-color\">\u73fe\u5f79\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u306e\u30de\u30f3\u30c4\u30fc\u30de\u30f3\u30ec\u30c3\u30b9\u30f3<\/span><\/strong><\/span>\n<span data-icon=\"check\" class=\"swl-inline-list\">\u56de\u7b54\u7387100%\u306eQ&amp;A\u63b2\u793a\u677f\u304c\u4f7f\u3044\u653e\u984c<\/span>\n<span data-icon=\"check\" class=\"swl-inline-list\"><span class=\"swl-inline-color has-swl-main-color\"><strong>\u5b9f\u8df5\u7684\u306a\u30b9\u30ad\u30eb\u3092\u8eab\u306b\u3064\u3051\u3089\u308c\u308b\u8ab2\u984c\u6a5f\u80fd<\/strong><\/span><\/span><\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-fz u-fz-xs\"><span data-icon=\"check\" class=\"swl-inline-list\">\u74b0\u5883\u69cb\u7bc9\u3092\u3057\u306a\u304f\u3066\u3082\u5b66\u3079\u308b<\/span>\n<span data-icon=\"check\" class=\"swl-inline-list\">\u30a4\u30e9\u30b9\u30c8\u4ed8\u304d\u306e\u30b9\u30e9\u30a4\u30c9\u5f0f\u6559\u6750<\/span>\u3000\u3000\u3000<span data-icon=\"check\" class=\"swl-inline-list\">\u30b9\u30de\u30db\u30a2\u30d7\u30ea\u3067\u3082\u5b66\u3079\u3066\u624b\u8efd <\/span><\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-fz u-fz-xs\"><span data-icon=\"check\" class=\"swl-inline-list\">\u30ec\u30c3\u30b9\u30f3\u52d5\u753b\u3067\u30a4\u30f3\u30d7\u30c3\u30c8\u53ef\u80fd<\/span>\n<span data-icon=\"check\" class=\"swl-inline-list\">3\u5206\u306e\u7c21\u5358\u306a\u52d5\u753b\u3067\u624b\u8efd\u306b\u5b66\u3079\u308b<\/span>\n<span data-icon=\"check\" class=\"swl-inline-list\">\u6709\u6599\u30d7\u30e9\u30f3\u306a\u3089\u8cea\u554f\u304c\u3067\u304d\u308b<\/span><\/span><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u8a73\u7d30<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-inline-btn is-style-btn_normal red_\"><a href=\"https:\/\/terakoya.sejuku.net\/?cid=pr_elearningsite_plus\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a><\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-inline-btn is-style-btn_normal red_\"><a href=\"https:\/\/prog-8.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a><\/span><\/td><td class=\"has-text-align-center\" data-align=\"center\"><span class=\"swl-inline-btn is-style-btn_normal red_\"><a href=\"https:\/\/dotinstall.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a><\/span><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u30b5\u30a4\u30c8\u3082\u7121\u6599\u30d7\u30e9\u30f3\u3092\u7528\u610f\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u6c17\u306b\u306a\u308b\u5b66\u7fd2\u30b5\u30a4\u30c8\u306f\u8a66\u3057\u3066\u307f\u308b\u306e\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\uff01<\/figcaption><\/figure>\n\n\n\n<p>\u203b \u3053\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306fPython 3.7, Ubuntu 18.04\u3067\u52d5\u4f5c\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u304b\u3089Python\u306e\u30b9\u30ad\u30eb\u3092\u5411\u4e0a\u3055\u305b\u3066\u3044\u304d\u305f\u3044\u65b9\u306b\u5411\u3051\u3066\u3001\u304a\u3059\u3059\u3081\u306ePython\u5b66\u7fd2\u30b5\u30a4\u30c87\u9078\u3092\u5225\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3082\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n            <a href=\"https:\/\/www.sejuku.net\/blog\/7050\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2024\/10\/howto-05-2025-04-01T192741.146-150x85.png\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">Python\u304c\u5b66\u3079\u308b\u7121\u6599\u5b66\u7fd2\u30b5\u30a4\u30c8\u304a\u3059\u3059\u30818\u9078\u3010\u521d\u5b66\u8005\u5411\u3051\u306b\u53b3\u9078\u3011<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2025\u5e7412\u670826\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n\n\n\n<h2 class=\"wp-block-heading\">\u30a8\u30e9\u30fc\u3068\u4f8b\u5916\u306e\u9055\u3044\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u3001<b>\u30a8\u30e9\u30fc\u306f\u4ed8\u304d\u7269\u3067\u3059<\/b>\u3002<\/p>\n\n\n\n<p>Python\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u69d8\u3005\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u76ee\u306b\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3089\u306f\u4e3b\u306b<br><div class=\"box01\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>\u69cb\u6587\u30a8\u30e9\u30fc<\/b><\/li>\n\n\n\n<li><b>\u4f8b\u5916<\/b><\/li>\n<\/ul>\n\n\n<\/div>\n\n\n\n<p>\u306e\u4e8c\u3064\u306e\u30ab\u30c6\u30b4\u30ea\u306b\u5206\u3051\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u69cb\u6587\u30a8\u30e9\u30fc\u3068\u306f<\/h3>\n\n\n\n<p>\u69cb\u6587\u30a8\u30e9\u30fc\u3068\u306f\u6587\u6cd5\u7684\u306a\u9593\u9055\u3044\u306b\u3088\u3063\u3066\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u306e\u3053\u3068\u3067\u3059\u3002\u82f1\u8a9e\u3067\u306fSyntax Error\u3068\u3082\u8a00\u3044\u3001Python\u306b\u304a\u3051\u308b\u6587\u6cd5\u30eb\u30fc\u30eb\u306a\u3069\u306b\u5f93\u308f\u306a\u3044\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u767a\u751f\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u51fa\u529b\u3055\u305b\u305f\u3044\u6587\u5b57\u5217\u3092\u62ec\u5f27\u306e\u4e2d\u306b\u5165\u308c\u306a\u3044\u3067print\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u3057\u307e\u3046\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">  File \"&lt;stdin&gt;\", line 1\n    print \"hello world\"\n                      ^\nSyntaxError: Missing parentheses in call to 'print'<\/pre>\n\n\n\n<p>\u62ec\u5f27\u3092\u3064\u3051\u305a\u306bprint\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u305f\u306e\u306fPython2\u7cfb\u3067\u3042\u308a\u30013\u7cfb\u3067\u306f\u3053\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u52d5\u4f5c\u3057\u306a\u3044\u306e\u3067\u3001\u3053\u308c\u3089\u306e\u89e3\u6d88\u306b\u52aa\u529b\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f8b\u5916\u3068\u306f<\/h3>\n\n\n\n<p>\u6587\u6cd5\u7684\u306b\u6b63\u3057\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3082\u3001\u5b9f\u884c\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u304c\u300c\u4f8b\u5916\u300d\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002\u82f1\u8a9e\u3067\u306fException\u3068\u3044\u3044\u3001\u3088\u304f\u51fa\u3066\u304f\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u306a\u306e\u3067\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u6587\u5b57\u5217\u306e\u5272\u308a\u7b97\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u884c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">words = \"Hello\"\nprint (words\/2)<\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Traceback (most recent call last):\n  File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;\nTypeError: unsupported operand type(s) for \/: 'str' and 'int'<\/pre>\n\n\n\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001TypeError\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<b>TypeError\u3068\u306f\u76f4\u8a33\u3059\u308b\u3068\u578b\u30a8\u30e9\u30fc<\/b>\u3067\u3042\u308a\u3001\u4eca\u56de\u306e\u3088\u3046\u306b\u8a08\u7b97\u306b\u4f7f\u3048\u308b\u578b\u3067\u306f\u306a\u3044string\u3092\u4f7f\u7528\u3057\u305f\u969b\u306a\u3069\u306b\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u3053\u308c\u4ee5\u5916\u306b\u3082\u69d8\u3005\u306a\u4f8b\u5916\u304c\u3042\u308a\u307e\u3059\u3002<br><div class=\"box01\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>ZeroDivisionError<\/b><\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\uff1aZeroDivisionError: division by zero<br>1\/0\u306e\u3088\u3046\u306b\u30bc\u30ed\u3067\u5272\u3063\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u306b\u8d77\u304d\u308b\u30a8\u30e9\u30fc<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>NameError<\/b><\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\uff1aNameError: name &#8216;hoge&#8217; is not defined<br>\u5b9a\u7fa9\u3057\u3066\u3044\u306a\u3044\u5909\u6570\u3092\u4f7f\u3063\u305f\u3068\u304d\u306b\u8d77\u304d\u308b\u30a8\u30e9\u30fc<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>AttributeError<\/b><\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\uff1aAttributeError: type object \u2018list\u2019 has no attribute &#8216;fuga&#8217;<br>\u5b58\u5728\u3057\u306a\u3044\u5c5e\u6027\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306b\u8d77\u304d\u308b\u30a8\u30e9\u30fc<\/div><\/p>\n\n\n\n<p>\u306a\u3069\u304c\u4ee3\u8868\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">try-except\u306e\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p>\u69cb\u6587\u30a8\u30e9\u30fc\u3068\u4f8b\u5916\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u305f\u3068\u3053\u308d\u3067\u3001\u4f8b\u5916\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u306f\u3069\u306e\u3088\u3046\u306b\u5bfe\u51e6\u3059\u308c\u3070\u3088\u3044\u306e\u304b\u89e3\u8aac\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u57fa\u672c\u7684\u306b\u306f try-except\u6587\u3092\u4f7f\u7528\u3057\u300c\u4f8b\u5916\u51e6\u7406\u300d\u3092\u884c\u3044\u307e\u3059\u3002try-except\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">try: \n    \u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u5b9f\u884c\u3057\u305f\u3044\u51e6\u7406\u3002\nexcept \u30a8\u30e9\u30fc\u540d:\n    \u4f8b\u5916\u767a\u751f\u6642\u306b\u884c\u3046\u51e6\u7406<\/pre>\n\n\n\n<p>\u307e\u305a\u306f\u3001try\u306e\u4e2d\u306b\u6307\u5b9a\u3055\u308c\u305f\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u4f8b\u5916\u304c\u767a\u751f\u3057\u306a\u3051\u308c\u3070\u3001except\u6587\u306f\u30b9\u30ad\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001try\u5b9f\u884c\u4e2d\u306bexcept\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u5f8c\u306b\u6307\u5b9a\u3057\u305f\u30a8\u30e9\u30fc\u540d\u3068\u4e00\u81f4\u3059\u308b\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u3068\u3001<b>except\u6587\u304c\u5b9f\u884c\u3055\u308c\u3001\u305d\u308c\u4ee5\u964d\u306b\u8a18\u8ff0\u3055\u308c\u305f\u51e6\u7406\u3082\u5b9f\u884c<\/b>\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u300cexcept\u300d\u30d6\u30ed\u30c3\u30af\u3067\u4f8b\u5916\u3092\u6349\u3048\u3066\u51e6\u7406\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u767a\u751f\u7b87\u6240\u3067\u51e6\u7406\u304c\u505c\u6b62\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u5b9f\u969b\u306btry-except\u6587\u3092\u4f7f\u7528\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">x = 1\ny = 0\n \ntry:\n    z = x \/ y\nexcept ZeroDivisionError:\n    print('You can not do this operation!')\n\nprint('Hello world!')<\/pre>\n\n\n\n<p>\u51fa\u529b\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">You can not do this operation!\nHello world!<\/pre>\n\n\n\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001try-except\u6587\u3092\u4f7f\u7528\u3057\u3001\u30bc\u30ed\u3067\u5272\u3063\u305f\u3068\u304d\u306b\u300cYou can not do this operation!\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u51fa\u529b\u3055\u305b\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001<b>try\u2010except\u30d6\u30ed\u30c3\u30af\u5916\u306b\u8a18\u8ff0\u3055\u308c\u305fHello World!<\/b>\u3068\u3044\u3046\u6587\u5b57\u5217\u306e\u51fa\u529b\u3082\u3001\u6b63\u5e38\u306b\u884c\u308f\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001try-except\u6587\u3092\u4f7f\u7528\u3057\u306a\u3044\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002[try-except\u6587\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408\u306e\u30b3\u30fc\u30c9]<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">x = 1\ny = 0\nz = x \/ y # \u4eca\u307e\u3067try\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u306b\u3042\u3063\u305f\u30b3\u30fc\u30c9\nprint('Hello world!')<\/pre>\n\n\n\n<p>Output<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Traceback (most recent call last):\n  File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;\nZeroDivisionError: division by zero<\/pre>\n\n\n\n<p>\u3054\u89a7\u3044\u305f\u3060\u3051\u308b\u3088\u3046\u306b\u3001<b>ZeroDivisionError\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u51e6\u7406\u304c\u30b9\u30c8\u30c3\u30d7<\/b>\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u70ba\u3001Hello World!\u3068\u3044\u3046\u6587\u5b57\u5217\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u521d\u5fc3\u8005\u306f\u5b66\u7fd2\u30b5\u30a4\u30c8\u3092\u767b\u9332\u3059\u308b\u306e\u304c\u304a\u3059\u3059\u3081<\/h2>\n\n\n\n<p>\u521d\u5fc3\u8005\u304c\u52b9\u7387\u7684\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u7fd2\u3059\u308b\u306b\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u30b5\u30a4\u30c8\u3092\u4f7f\u3046\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u7121\u6599\u3067\u4f7f\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3042\u308c\u3070\u3001\u4f59\u8a08\u306a\u8cbb\u7528\u3092\u304b\u3051\u308b\u3053\u3068\u306a\u304f\u52b9\u7387\u7684\u306b\u52c9\u5f37\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u4ed6\u306e\u4eba\u3088\u308a\u3082\u65e9\u304f\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7121\u6599\u3067\u73fe\u5834\u3067\u6d3b\u8e8d\u3057\u3066\u3044\u308b\u30d7\u30ed\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u76f8\u8ac7\u304c\u3067\u304d\u308b\u5b66\u7fd2\u30b5\u30a4\u30c8\u306a\u3069\u3082\u3042\u308b\u305f\u3081\u3001\u6c17\u306b\u306a\u3063\u305f\u65b9\u306f\u305c\u3072\u5229\u7528\u3057\u3066\u307f\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>\uff3c\u3000\u73fe\u5f79\u30a8\u30f3\u30b8\u30cb\u30a2\u30681on1\u30ec\u30c3\u30b9\u30f3\u304c\u53ef\u80fd\uff01\uff0f<\/strong>\n    <a class=\"sc_button2\" href=\"https:\/\/www.sejuku.net\/terakoya\/lp3\/?cid=btn_article_plus\">\u4f8d\u30c6\u30e9\u30b3\u30e4\u306e\u8a73\u7d30\u3092\u898b\u308b<\/a>\n    <\/p>\n\n\n<h2>\u4f8b\u5916\u304c\u767a\u751f\u3057\u305f\u5f8c\u306e\u51e6\u7406\u3068\u306f<\/h2>\n<p>\u300cexcept\u300d\u30d6\u30ed\u30c3\u30af\u3067\u5b9f\u884c\u3059\u308b\u51e6\u7406\u306f\u3001\u69d8\u3005\u306a\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308b\u306e\u3067\u305d\u308c\u305e\u308c\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f<br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>\u6545\u610f\u306b\u4f8b\u5916\u3092\u8d77\u3053\u3059\u5834\u5408\u306fraise\u53e5<\/b><\/li>\n<li><b>\u4f8b\u5916\u767a\u751f\u5f8c\u306b\u4f55\u3082\u51e6\u7406\u3092\u884c\u308f\u306a\u3044\u5834\u5408\u306fpass\u53e5<\/b><\/li>\n<li><b>\u4f8b\u5916\u304c\u767a\u751f\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306b\u306e\u307f\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u306felse\u53e5<\/b><\/li>\n<li><b>\u4f8b\u5916\u306e\u767a\u751f\u306b\u95a2\u308f\u3089\u305a\u5fc5\u305a\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u306ffinally\u53e5<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>raise\u3068pass\u306b\u3064\u3044\u3066<\/h3>\n<p>\u6545\u610f\u306b\u4f8b\u5916\u3092\u8d77\u3053\u3059\u5834\u5408\u306f\u300craise\u300d\u53e5\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:python decode:true\">try:\n    raise ZeroDivisionError\nexcept:\n    print('\u6545\u610f\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f')<\/pre>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\u6545\u610f\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f<\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u300ctry\u300d\u30d6\u30ed\u30c3\u30af\u5185\u3067\u300craise\u300d\u53e5\u3092\u4f7f\u7528\u3057\u3066\u6545\u610f\u306b\u4f8b\u5916\u3092\u767a\u751f\u3055\u305b\u3001\u300cexcept\u300d\u30d6\u30ed\u30c3\u30af\u3067\u4f8b\u5916\u3092\u6349\u3048\u300c\u6545\u610f\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f\u300d\u3068\u8868\u793a\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u5916\u767a\u751f\u5f8c\u306b\u4f55\u3082\u51e6\u7406\u3092\u884c\u308f\u306a\u3044\u5834\u5408\u306f\u300cpass\u300d\u53e5\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:python decode:true \">x = 1\ny = 0\n\ntry:\n    z = x \/ y\nexcept:\n    pass<\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u300cpass\u300d\u53e5\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u300cz = x \/ y\u300d\u3068\u3044\u3046\u30bc\u30ed\u3067\u306e\u5272\u308a\u7b97\u306b\u3088\u308b\u30a8\u30e9\u30fc\u767a\u751f\u5f8c\u306f\u4f55\u3082\u8d77\u3053\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>else\u3068finally\u306b\u3064\u3044\u3066<\/h3>\n<p>\u4f8b\u5916\u304c\u767a\u751f\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306b\u884c\u3046\u51e6\u7406\u3092\u660e\u8a18\u3059\u308b\u5834\u5408\u306f\u300celse\u300d\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<b>\u4f8b\u5916\u306e\u767a\u751f\u306b\u95a2\u308f\u3089\u305a\u5fc5\u305a\u51e6\u7406\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u300cfinally\u300d\u30d6\u30ed\u30c3\u30af<\/b>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u4e8c\u3064\u3068\u3082\u540c\u3058\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:python decode:true \">x = 1\ny = 0\n \ntry:\n    z = x \/ y\nexcept:\n    print('\u4f8b\u5916\u767a\u751f!\u30bc\u30ed\u3067\u5272\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093')\nelse:\n    print('\u4f8b\u5916\u306f\u767a\u751f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002')\nfinally:\n    print('\u5b9f\u884c\u304c\u7d42\u4e86\u3057\u307e\u3057\u305f')<\/pre>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\u4f8b\u5916\u767a\u751f!\u30bc\u30ed\u3067\u5272\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\n\u5b9f\u884c\u304c\u7d42\u4e86\u3057\u307e\u3057\u305f<\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30bc\u30ed\u3067\u306e\u5272\u308a\u7b97\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u30bc\u30ed\u3067\u5272\u308a\u7b97\u3092\u884c\u3063\u305f\u5834\u5408\u3001\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u306e\u3067except\u6587\u304c\u767a\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>else\u53e5\u306f\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u305f\u3081\u767a\u52d5\u305b\u305a\u3001<b>\u300cfinally\u300d\u30d6\u30ed\u30c3\u30af\u306f\u30a8\u30e9\u30fc\u306e\u767a\u751f\u306b\u95a2\u308f\u3089\u305a\u51e6\u7406<\/b>\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<h3>\u4f8b\u5916\u304c\u8907\u6570\u3042\u308b\u5834\u5408<\/h3>\n<p>\u3053\u308c\u307e\u3067\u306f\u4e00\u3064\u306e\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u4f8b\u5916\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306b\u4f8b\u5916\u306e\u7a2e\u985e\u306b\u5fdc\u3058\u3066\u51e6\u7406\u3092\u5206\u3051\u308b\u65b9\u6cd5\u304c\u3042\u308b\u306e\u3067\u3001\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:python decode:true \">x = 1\ny = 0\n \ntry:\n    z = x \/ y\n    f = open('text.txt')\nexcept ZeroDivisionError:\n    print(\"Zero division\")\nexcept FileNotFoundError:\n    print(\"File not found\")\nfinally:\n    print('\u51e6\u7406\u304c\u7d42\u4e86\u3057\u307e\u3057\u305f')<\/pre>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">Zero division\n\u51e6\u7406\u304c\u7d42\u4e86\u3057\u307e\u3057\u305f<\/pre>\n<p>\u4e0a\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u300cz = x \/ y\u300d\u3068\u3044\u3046\u30bc\u30ed\u3067\u306e\u5272\u308a\u7b97\u3068\u300cf = open(&#8216;text.txt&#8217;)\u300d\u3068\u3044\u3046\u5b58\u5728\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u51e6\u7406\u3092\u884c\u304a\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u300cexcept\u300d\u30d6\u30ed\u30c3\u30af\u3092\u8907\u6570\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u6570\u306e\u4f8b\u5916\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6ce8\u610f\u3057\u305f\u3044\u70b9\u306f\u3001\u5148\u306b\u8a18\u8ff0\u3057\u305f\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u4f8b\u5916\u304c\u767a\u751f\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u5f8c\u306b\u8a18\u8ff0\u3057\u305f\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u8a18\u8ff0\u306e\u9806\u756a\u306b\u3088\u308a\u5b9f\u884c\u3055\u308c\u308b\u51e6\u7406\u3068\u5b9f\u884c\u3055\u308c\u306a\u3044\u51e6\u7406\u304c\u3042\u308b\u306e\u3067\u3001\u8a18\u8ff0\u3059\u308b\u9806\u756a\u306b\u306f\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Python\u306b\u304a\u3051\u308b\u57fa\u672c\u7684\u306a\u4f8b\u5916\u51e6\u7406\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066\u30a8\u30e9\u30fc\u306e\u767a\u751f\u306f\u306a\u304b\u306a\u304b\u514d\u308c\u306a\u3044\u3082\u306e\u3067\u3059\u304c\u3001\u4f8b\u5916\u51e6\u7406\u3092\u4f7f\u3046\u3053\u3068\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3082\u5b9f\u884c\u304c\u4e2d\u6b62\u3059\u308b\u3053\u3068\u306a\u304f\u305d\u308c\u4ee5\u964d\u306e\u51e6\u7406\u3082\u884c\u308f\u308c\u308b\u306e\u3067\u3001\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u7686\u3055\u3093\u3082\u3053\u306e\u8a18\u4e8b\u3092\u901a\u3057\u3066\u3001\u4f8b\u5916\u51e6\u7406\u3092\u3069\u3093\u3069\u3093\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3044\u3063\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u306a\u304a\u3001\u4ecaPython\u3092\u5b66\u7fd2\u3057\u3066\u3044\u308b\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3082\u3069\u3046\u305e\u3002<\/p>\n<p><strong>\u306f\u3058\u3081\u3066Python\u3092\u4f7f\u3046\u65b9\u3067\u3082\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u3001Python\u3067\u3067\u304d\u308b\u3053\u3068\u3084\u305d\u306e\u5b66\u7fd2\u6cd5\u306a\u3069\u3092\u4e2d\u5fc3\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n<p>\u5fa9\u7fd2\u306b\u3082\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u4e00\u5ea6\u3054\u89a7\u306b\u306a\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3010<a href=\"https:\/\/www.sejuku.net\/blog\/curriculums-python\"><strong>Python \u5165\u9580\u5b8c\u5168\u653b\u7565\u30ac\u30a4\u30c9<\/strong><\/a>\u3011<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/curriculums-python\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2021\/10\/howto-05-21-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">Python\u30a2\u30d7\u30ea\u958b\u767a\u5b8c\u5168\u30ac\u30a4\u30c9\uff01\u6210\u529f\u3078\u3068\u5c0e\u304f\u5165\u9580\u624b\u9806\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u670821\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066\u30a8\u30e9\u30fc\u306f\u3064\u304d\u3082\u306e\u3067\u3059\u3002 Python\u3067\u306ftry-except\u3067\u300c\u4f8b\u5916\u51e6\u7406\uff08exception\uff09\u300d\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u4e88\u671f\u305b\u306c\u30a8\u30e9\u30fc\u3092\u672a\u7136\u306b\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f \u3068\u3044\u3063\u305f\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":73122,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2350],"tags":[49],"class_list":["post-23044","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-study","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/23044\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/23044\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-15T11:17:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:42:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/image19.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01\",\"datePublished\":\"2017-05-15T11:17:59+00:00\",\"dateModified\":\"2024-05-06T02:42:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044\"},\"wordCount\":238,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/image19.jpg\",\"keywords\":[\"python\"],\"articleSection\":[\"Python\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044\",\"name\":\"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/image19.jpg\",\"datePublished\":\"2017-05-15T11:17:59+00:00\",\"dateModified\":\"2024-05-06T02:42:22+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/image19.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/image19.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23044#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/23044","og_locale":"ja_JP","og_type":"article","og_title":"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/23044","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2017-05-15T11:17:59+00:00","article_modified_time":"2024-05-06T02:42:22+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/image19.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/23044#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/23044"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01","datePublished":"2017-05-15T11:17:59+00:00","dateModified":"2024-05-06T02:42:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/23044"},"wordCount":238,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/23044#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/image19.jpg","keywords":["python"],"articleSection":["Python\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/23044","url":"https:\/\/www.sejuku.net\/blog\/23044","name":"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/23044#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/23044#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/image19.jpg","datePublished":"2017-05-15T11:17:59+00:00","dateModified":"2024-05-06T02:42:22+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/23044#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/23044"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/23044#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/image19.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/image19.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/23044#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Python\u306e\u4f8b\u5916\u51e6\u7406\uff01try-except\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/23044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=23044"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/23044\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/73122"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=23044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=23044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=23044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}