{"id":1655,"date":"2022-01-27T14:05:50","date_gmt":"2022-01-27T05:05:50","guid":{"rendered":"https:\/\/aiacademy.jp\/media\/?p=1655"},"modified":"2024-08-08T15:45:42","modified_gmt":"2024-08-08T06:45:42","slug":"%e3%80%90python%e3%80%91%e6%a7%8b%e6%96%87%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%a8%e4%be%8b%e5%a4%96%e3%81%ae%e9%81%95%e3%81%84%e3%80%80%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ab%e3%82%8f","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=1655","title":{"rendered":"\u3010Python\u3011\u69cb\u6587\u30a8\u30e9\u30fc\u3068\u4f8b\u5916\u306e\u9055\u3044\u3000\u521d\u5fc3\u8005\u5411\u3051\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01"},"content":{"rendered":"<div id=\"sgb-css-id-1\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size is-style-fill has-medium-font-size\"><a class=\"wp-block-button__link has-vivid-green-cyan-background-color has-background wp-element-button\" href=\"https:\/\/lin.ee\/3E4GzWk\" rel=\"nofollow noopener\" target=\"_blank\">LINE\u53cb\u3060\u3061\u767b\u9332 \u25b6 Python\u30b3\u30fc\u30b9 \u25b6 \u53d7\u8b1b\u5272\u5f15\u30af\u30fc\u30dd\u30f3 \u7121\u6599\u52d5\u753b<\/a><\/div>\n<\/div>\n<\/div>\n\n\n<h1 class=\"wp-block-heading\" id=\"i-0\">\u69cb\u6587\u30a8\u30e9\u30fc\u3068\u4f8b\u5916\u3068\u306f<\/h1>\n\n\n\n<p>Python\u3067\u306f\u69cb\u6587\u30a8\u30e9\u30fc\uff08<code>syntax error<\/code>\uff09\u3068\u4f8b\u5916\uff08<code>exception<\/code>\uff09\u306e\uff12\u7a2e\u985e\u306e\u30a8\u30e9\u30fc\u304c\u5b58\u5728\u3057\u3001\u3053\u308c\u3089\u306f\u533a\u5225\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u69cb\u6587\u30a8\u30e9\u30fc\u3068\u306f\u3001\u305d\u306e\u5b57\u306e\u901a\u308a\u69cb\u6587\u3068\u3057\u3066\u8aa4\u308a\u304c\u3042\u308b\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u3067\u3001\u69cb\u6587\u304c\u6b63\u3057\u304f\u3066\u3082\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u4e2d\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u306f\u4f8b\u5916\u3068\u547c\u3073\u307e\u3059\u3002\u300c\u30a8\u30e9\u30fc\u300d\u3068\u300c\u4f8b\u5916\u300d\u3092\u7279\u306b\u4f7f\u3044\u5206\u3051\u305a\u3001\u300c\u30a8\u30e9\u30fc\u300d\u3068\u4e00\u62ec\u308a\u306b\u547c\u3076\u4e8b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u307e\u305f\u3001\u69cb\u6587\u30a8\u30e9\u30fc\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u524d\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u306a\u4e00\u65b9\u3067 \u4f8b\u5916\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u4e2d\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.pyq.jp\/python\/error\/error.html\" rel=\"nofollow noopener\" target=\"_blank\"><\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-1\">\u69cb\u6587\u30a8\u30e9\u30fc\uff08SyntaxError\uff09<\/h1>\n\n\n\n<p><code>SyntaxError<\/code>\u306fPython\u306e\u69cb\u6587\u3068\u3057\u3066\u6b63\u3057\u304f\u306a\u3044\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002\u30b3\u30ed\u30f3<code>:<\/code>\u3084<code>()<\/code>\u306e\u9589\u3058\u5fd8\u308c\u306a\u3069\u304c\u3042\u308b\u5834\u5408\u306b\u69cb\u6587\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<code>SyntaxError<\/code>\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001Python\u306e\u69cb\u6587\u304c\u9593\u9055\u3063\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002\u69cb\u6587\u30a8\u30e9\u30fc\u306b\u306a\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for i in range(5)<\/code><\/pre>\n\n\n\n<p><strong>\u51fa\u529b\u7d50\u679c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  File \"&lt;stdin&gt;\", line 1\n    for i in range(5)\n                    ^\nSyntaxError: invalid syntax<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306f<code>for<\/code>\u6587\u306e\u6587\u672b\u306b\u5fc5\u8981\u306a<code>:<\/code>\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001<code>SyntaxError<\/code>\u304c\u767a\u751f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print('AI Academy<\/code><\/pre>\n\n\n\n<p><strong>\u51fa\u529b\u7d50\u679c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  File \"&lt;stdin&gt;\", line 1\n    print('AI Academy\n                    ^\nSyntaxError: EOL while scanning string literal<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306f<code>print()<\/code>\u95a2\u6570\u306e\u6587\u672b\u306b\u5fc5\u8981\u306a<code>)<\/code>\u306e\u9589\u3058\u5fd8\u308c\u304c\u3042\u308b\u305f\u3081\u3001<code>SyntaxError<\/code>\u304c\u767a\u751f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-2\">\u4f8b\u5916\u306e\u7a2e\u985e<\/h1>\n\n\n\n<p><meta charset=\"utf-8\">\u4f8b\u5916\u306e\u7a2e\u985e\u3068\u3057\u3066\u3001\u4e3b\u8981\u306a\u3082\u306e\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u30fbIndentationError\n\u30fbNameError\n\u30fbTypeError\n\u30fbValueError\n\u30fbAttributeError\n\u30fbIndexError\n\u30fbKeyError\n\u30fbModuleNotFoundError\n\u30fbZeroDivisionError\n\u30fbFileNotFoundError<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-3\">Python\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\uff1f<\/h1>\n\n\n\n<p>Python\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\u3001\u73fe\u5f79\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30c6\u30a3\u30b9\u30c8\u3084\u6a5f\u68b0\u5b66\u7fd2\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u8cea\u554f\u304c\u3067\u304d\u308b\u74b0\u5883\u3067\u5b66\u3076\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>AI Academy Bootcamp\u3067\u306f\u3001\u4f53\u7cfb\u7684\u306b\u5b66\u3079\u308b\u52d5\u753b\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u52a0\u3048\u3001\u73fe\u5f79\u306e\u6a5f\u68b0\u5b66\u7fd2\u30a8\u30f3\u30b8\u30cb\u30a2\u3084\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30c6\u30a3\u30b9\u30c8\u306b\u53d7\u8b1b\u671f\u9593\u4e2d\u8cea\u554f\u3057\u653e\u984c\u3001\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u3057\u653e\u984c\u306e\u74b0\u5883\u3067\u5b66\u3079\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u5b66\u3079\u308b\u306e\u3067\u3001\u597d\u304d\u306a\u6642\u9593\u306b\u52c9\u5f37\u3067\u304d\u307e\u3059\u3002<br>\u53d7\u8b1b\u6599\u30826\u30f6\u6708\u959335,000\u5186\u3067\u5b66\u3079\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b3\u30b9\u30d1\u826f\u304fPython\u3084AI\u30b9\u30ad\u30eb\u3092\u8eab\u306b\u4ed8\u3051\u305f\u3044\u65b9\u306f\u3001<a href=\"https:\/\/aiacademy.jp\/bootcamp\">AI Academy Bootcamp<\/a>\u306e\u53d7\u8b1b\u3054\u691c\u8a0e\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/aiacademy.jp\/bootcamp\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-1024x341.png\" alt=\"\" class=\"wp-image-587\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-1024x341.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-300x100.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-768x256.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-940x313.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u69cb\u6587\u30a8\u30e9\u30fc\u3068\u4f8b\u5916\u3068\u306f Python\u3067\u306f\u69cb\u6587\u30a8\u30e9\u30fc\uff08syntax error\uff09\u3068\u4f8b\u5916\uff08exception\uff09\u306e\uff12\u7a2e\u985e\u306e\u30a8\u30e9\u30fc\u304c\u5b58\u5728\u3057\u3001\u3053\u308c\u3089\u306f\u533a\u5225\u3055\u308c\u307e\u3059\u3002 \u69cb\u6587\u30a8\u30e9\u30fc\u3068\u306f\u3001\u305d\u306e\u5b57\u306e\u901a\u308a\u69cb\u6587\u3068\u3057\u3066\u8aa4\u308a\u304c\u3042\u308b\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1659,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,165,174],"tags":[],"class_list":{"0":"post-1655","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python","8":"category-165","9":"category-174"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1655"}],"version-history":[{"count":4,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1655\/revisions"}],"predecessor-version":[{"id":4841,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1655\/revisions\/4841"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/1659"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}