{"id":123,"date":"2019-11-15T16:00:03","date_gmt":"2019-11-15T07:00:03","guid":{"rendered":"http:\/\/aiacademy.jp\/media\/?p=123"},"modified":"2024-08-08T16:36:21","modified_gmt":"2024-08-08T07:36:21","slug":"%e3%80%90%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%80%91%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%a8%e3%81%af%e4%bd%95%e3%81%8b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=123","title":{"rendered":"\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011\u30c7\u30fc\u30bf\u578b\u3068\u306f\u4f55\u304b\uff1f"},"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<div class=\"toc\">    <div id=\"toc_container\" class=\"sgb-toc--no-bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">\u5168\u4f53\u50cf<\/a>  <\/li>  <li>    <a href=\"#i-1\">\u5909\u6570\u3068\u578b<\/a>  <\/li>  <li>    <a href=\"#i-2\">\u30c7\u30fc\u30bf\u578b<\/a>  <\/li>  <li>    <a href=\"#i-3\">\u6570\u5b57\uff08\u6570\u5024\u578b\uff09<\/a>  <\/li>  <li>    <a href=\"#i-4\">\u6587\u5b57\u5217\u578b<\/a>  <\/li>  <li>    <a href=\"#i-5\">\u578b\u5909\u63db(\u30ad\u30e3\u30b9\u30c8)<\/a>  <\/li>  <li>    <a href=\"#i-6\">\u30ea\u30b9\u30c8\u578b<\/a>  <\/li>  <li>    <a href=\"#i-7\">\u30ea\u30b9\u30c8\u306e\u8ffd\u52a0<\/a>  <\/li>  <li>    <a href=\"#i-8\">\u8f9e\u66f8\u578b<\/a>  <\/li>  <li>    <a href=\"#i-9\">\u30ea\u30b9\u30c8\u578b\u3068\u8f9e\u66f8\u578b\u306e\u9055\u3044<\/a>  <\/li>  <li>    <a href=\"#i-10\">\u30ea\u30b9\u30c8\u578b\u3068\u8f9e\u66f8\u578b\u306e\u5171\u901a\u3059\u308b\u3068\u3053\u308d<\/a>  <\/li>  <li>    <a href=\"#i-11\">\u307e\u3068\u3081<\/a>  <\/li>  <li class=\"last\">    <a href=\"#i-12\">\u6f14\u7fd2\u554f\u984c<\/a>  <\/li><\/ul>\n      \n    <\/div><\/div><div class=\"toc\"><p><\/p>\n<\/div><h2 id=\"i-0\">\u5168\u4f53\u50cf<\/h2>\n<p>\u307e\u305a\u306f\u3058\u3081\u306b\u3001Python\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u5168\u4f53\u50cf\u3092\u4fef\u77b0\u3057\u307e\u3057\u3087\u3046\u3002<br>\u3053\u306e\u7ae0\u3067\u306f\u3001\u4e0b\u56f3\u306e\u6574\u6570\u578b\u3001\u6587\u5b57\u5217\u578b\u3001\u30ea\u30b9\u30c8\u578b\u3001\u8f9e\u66f8\u578b\u306b\u7d5e\u3063\u3066\u5b66\u3073\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/aiacademy.jp\/assets\/images\/data_type.png\" alt=\"\"><\/p>\n<h2 id=\"i-1\">\u5909\u6570\u3068\u578b<\/h2>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u3088\u3063\u3066\u306f\u3001\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u969b\u306b\u3001\u300c\u578b\u5ba3\u8a00\uff08\u3053\u306e\u5909\u6570\u306b\u306f\u3053\u306e\u578b\u3092\u683c\u7d0d\u3059\u308b\u3088\u3068\u3044\u3046\u5ba3\u8a00\uff09\u300d\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u8a00\u8a9e\u304c\u3042\u308a\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e(Java\u8a00\u8a9e\u3084C\u8a00\u8a9e\u306a\u3069)\u306f\u578b\u5ba3\u8a00\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br>\u3067\u3059\u304c\u3001Python\u306e\u5909\u6570\u306b\u306f\u578b\u5ba3\u8a00\u304c\u5fc5\u8981\u306a\u3044\u305f\u3081\u3001\u5909\u6570\u306b\u3069\u306e\u3088\u3046\u306a\u578b\u3067\u3082\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>x = 5\nprint(x) # 5\u304c\u51fa\u529b\u3055\u308c\u308b\u3002\nx = \"Python\" # \u554f\u984c\u306a\u304f\u4ee3\u5165\u53ef\u80fd\u3002\nprint(x) # Python\u3068\u51fa\u529b\u3055\u308c\u308b\u3002\n<\/code><\/pre>\n<h2 id=\"i-2\">\u30c7\u30fc\u30bf\u578b<\/h2>\n<p>\u3053\u308c\u307e\u3067\u306b\u3001\u300c\u6587\u5b57\u5217\u300d\u3084\u300c\u6570\u5024\u300d\u3068\u3044\u3046\u5024\u3092\u898b\u3066\u304d\u307e\u3057\u305f\u3002<br>\u3053\u308c\u3089\u306f\u300c\u30c7\u30fc\u30bf\u578b\u300d\u3068\u547c\u3070\u308c\u3001\u69d8\u3005\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<br>\u4e3b\u306a\u3082\u306e\u306f\u3001\u6574\u6570\u578b\u3001\u6587\u5b57\u5217\u578b\u3001\u8f9e\u66f8\u578b\u3001\u30ea\u30b9\u30c8\u578b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2 id=\"i-3\">\u6570\u5b57\uff08\u6570\u5024\u578b\uff09<\/h2>\n<p>\uff11\uff09\u6574\u6570(int)<br>\uff12\uff09\u5c0f\u6570\u30fb\u5b9f\u6570(float)<br>\uff13\uff09\u8907\u7d20\u6570<br>\u306e3\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2 id=\"i-4\">\u6587\u5b57\u5217\u578b<\/h2>\n<p><strong>\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff08\u201d\u3068\u201d\uff09\u307e\u305f\u306f\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3(\u2018\u3068\u2019)\u3067\u56f2\u3046\u3068\u6587\u5b57\u5217\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><br>\u6b21\u306e\u3088\u3046\u306b\u30013\u7a2e\u985e\u306e\u8a18\u8ff0\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code># 1) \u30b7\u30f3\u30b0\u30eb\u30af\u30aa\u30c6\u30fc\u30b7\u30e7\u30f3\nstr1 = 'Hello World'\n\n# 2) \u30c0\u30d6\u30eb\u30af\u30aa\u30c6\u30fc\u30b7\u30e7\u30f3\nstr2 = \"Hello World\"\n\n# 3) \u30c8\u30ea\u30d7\u30eb\u30fb\u30c0\u30d6\u30eb\u30af\u30aa\u30c6\u30fc\u30b7\u30e7\u30f3\nstr3 = \"\"\"Hello World\nHello Python\"\"\"\n<\/code><\/pre>\n<p><strong>Python\u3067\u306f\u6587\u5b57\u5217\u578b\u3092\u5b9a\u7fa9\u3059\u308b\u4e0a\u3067\u3001\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff08\u201d\u3068\u201d\uff09\u3068\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3(\u2018\u3068\u2019)\u306e\u660e\u78ba\u306a\u4f7f\u3044\u5206\u3051\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u3069\u3061\u3089\u304b\u597d\u304d\u306a\u65b9\u3092\u4f7f\u3063\u3066\u6587\u5b57\u5217\u578b\u3092\u5b9a\u7fa9\u3057\u3066\u9802\u3051\u305f\u3089\u3068\u601d\u3044\u307e\u3059\u3002<\/strong><\/p>\n<pre><code>x = '1' # \u6587\u5b57\u5217\u578b\n<\/code><\/pre>\n<p>\u3055\u3089\u306b\u3001\u6587\u5b57\u5217\u578b\u3067\u306f+\u3068\uff0a\u306e2\u3064\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u304c\u3001<br>+\u306f\u6587\u5b57\u5217\u540c\u58eb\u3067\u4f7f\u3046\u5834\u5408\u3001<strong>\u7d50\u5408<\/strong>\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u3001\u8907\u6570\u306e\u6587\u5b57\u5217\u30921\u3064\u306e\u6587\u5b57\u5217\u3068\u3057\u3066\u8868\u73fe\u3067\u304d\u307e\u3059\u3002<br>\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\u8a18\u53f7(\uff0a)\u3092\u4f7f\u3046\u3068\u6587\u5b57\u5217\u3092<strong>\u53cd\u5fa9<\/strong>\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u305d\u308c\u305e\u308c\u78ba\u8a8d\u3057\u3066\u898b\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code># \u7d50\u5408\na = \"hello \" # \u7d50\u5408\u5f8c\u3001\u898b\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u3001\u6700\u5f8c\u306b\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u5165\u308c\u3066\u3044\u307e\u3059\u3002\nb = \"world\"\nprint(a + b) # hello world\n<\/code><\/pre>\n<p>\u6b21\u306b\u3001*\u3092\u4f7f\u3046\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code># \u53cd\u5fa9\na = \"hello\"\nprint(a * 3) # hellohellohello\n<\/code><\/pre>\n<h2 id=\"i-5\">\u578b\u5909\u63db(\u30ad\u30e3\u30b9\u30c8)<\/h2>\n<p>\u4e0b\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a18\u8ff0\u3057\u3066\u5b9f\u969b\u306b\u3001\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>print(\"Hello\" + \"World\") # +\u306b\u3088\u308a\u6587\u5b57\u5217\u540c\u58eb\u3092\u9023\u7d50\nname = \"Tom\"\nprint(\"My name is \" + name)\n\nage = 24\n# \u4ee5\u4e0b\u306f\u3001\u30c7\u30fc\u30bf\u578b\u306e\u7570\u306a\u308b\u6587\u5b57\u5217\u578b\u3068\u6570\u5024\u578b\u3092\u9023\u7d50\u3057\u3066\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002\n\nprint(\"My name is \" + name + \"My age is \" + age) # \u3053\u306e\u884c\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\n# TypeError: Can't convert 'int' object to str implicitly\n<\/code><\/pre>\n<p>\u3059\u308b\u3068\u3001<strong>TypeError: Can\u2019t convert \u2018int\u2019 object to str implicitly<\/strong>\u3068\u30a8\u30e9\u30fc\u304c\u3067\u307e\u3059\u3002<br>\u3053\u306e\u3088\u3046\u306b\u3001<strong><em>\u30c7\u30fc\u30bf\u578b\u306e\u7570\u306a\u308b\u6587\u5b57\u5217\u578b\u3068\u6570\u5024\u578b\u3092\u9023\u7d50\u3057\u305f\u5834\u5408\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/em><\/strong><br>\u305d\u3053\u3067\u3001\u3053\u306e\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3059\u308b\u306b\u306f\u3001\u6570\u5024\u578b\u3092\u6587\u5b57\u5217\u578b\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3067\u3001\u6587\u5b57\u5217\u540c\u58eb\u306e\u9023\u7d50\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u9023\u7d50\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u3053\u306e\u3088\u3046\u306b<strong>\u30c7\u30fc\u30bf\u578b\u3092\u5909\u3048\u308b\u3053\u3068\u3092\u300c\u578b\u5909\u63db\u300d\u307e\u305f\u306f\u300c\u30ad\u30e3\u30b9\u30c8\u300d\u3068\u547c\u3073\u307e\u3059\u3002<\/strong><br><strong>\u6570\u5024\u578b\u3092\u6587\u5b57\u5217\u578b\u306b\u5909\u63db\u3059\u308b\u306b\u306fstr()\u3092\u4f7f\u3044\u307e\u3059\u3002<\/strong><\/p>\n<pre><code>name = \"Tom\"\nage = 24\nprint(\"My name is \" + name + \"My age is \" + str(age))\n\n\"\"\"\n\u5148\u307b\u3069\u3001\u6570\u5024\u578b\u3092\u6587\u5b57\u5217\u578b\u306b\u5909\u63db\u3057\u307e\u3057\u305f\u304c\u3001\u53cd\u5bfe\u306b\u6587\u5b57\u5217\u578b\u3092\u6570\u5024\u578b\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\n\u305d\u306e\u5834\u5408\u300cint\u300d\u3092\u7528\u3044\u307e\u3059\u3002\n\"\"\"\n\nstring_price = \"1000\"\nprice = 500\n\ntotal_price = int(string_price) + price\nprint(total_price) # 1500\n<\/code><\/pre>\n<h2 id=\"i-6\">\u30ea\u30b9\u30c8\u578b<\/h2>\n<p>\u3053\u306e\u7bc0\u3067\u306f\u3001\u30ea\u30b9\u30c8\u578b\u3092\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>\u30ea\u30b9\u30c8\u578b\u306f\u30c7\u30fc\u30bf\u578b\u306e\u4e2d\u3067\u3082\u3001\u304b\u306a\u308a\u5927\u4e8b\u306a\u578b\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3057\u3063\u304b\u308a\u3068\u6271\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<br>\u3055\u3066\u3001<strong><em>\u5909\u6570\u306f\u30011\u3064\u306e\u30c7\u30fc\u30bf\u3057\u304b\u7ba1\u7406\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u30ea\u30b9\u30c8\u578b\u306f\u8907\u6570\u306e\u30c7\u30fc\u30bf(\u5909\u6570)\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/em><\/strong><br>\u4ed6\u306e\u8a00\u8a9e\u3067\u306f\u914d\u5217\u3068\u547c\u3070\u308c\u305f\u308a\u3057\u307e\u3059\u3002<br>Python\u306elist\u306f\u3001\u683c\u7d0d\u3059\u308b\u578b\u306e\u5b9a\u7fa9\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<br>\u8907\u6570\u306e\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3057\u305f\u3044\u5834\u5408\u306b\u30ea\u30b9\u30c8\u3092\u7528\u3044\u307e\u3059\u3002<br>list\u306f\u914d\u5217\u540d = [\u201cx\u201d,\u201dy\u201d,\u201dz\u201d]\u3068\u3044\u3046\u5f62\u5f0f\u3067\u5ba3\u8a00\u3057\u307e\u3059\u3002<br><strong>\u30ea\u30b9\u30c8\u306e\u4e2d\u8eab\u306f\u5de6\u304b\u3089\u6570\u3048\u59cb\u3081\u3001\u6700\u521d\u306f1\u3067\u306f\u306a\u304f\u30010\u304b\u3089\u6570\u3048\u308b\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<\/strong><br>\u3053\u306e<strong>\u30ea\u30b9\u30c8\u306e\u4e2d\u8eab\u306b\u3064\u3051\u3089\u308c\u305f\u756a\u53f7\u3092\u6dfb\u3048\u5b57(\u305d\u3048\u3058)\u3084\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306a\u3069\u3068\u547c\u3073\u307e\u3059\u3002<\/strong><\/p>\n<h2 id=\"i-7\">\u30ea\u30b9\u30c8\u306e\u8ffd\u52a0<\/h2>\n<p><strong>append()\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001list\u306e\u672b\u5c3e\u306b\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n<pre><code class=\"python:\">li = []\nli.append(\"python)\nprint(li) # ['python']\nli.append(\"php\")\nprint(li) # ['python', 'php']\n<\/code><\/pre>\n<h2 id=\"i-8\">\u8f9e\u66f8\u578b<\/h2>\n<p>\u8f9e\u66f8\u578b(\u30c7\u30a3\u30af\u30b7\u30e7\u30ca\u30ea\u30fc\u578b\uff09\u306fKey\u3068Value\u306e\u30da\u30a2\u3092\u4fdd\u6301\u3059\u308b\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306f\u8f9e\u66f8\u578b\u306e\u69cb\u6587\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"python:\">\u8f9e\u66f8\u540d = {\"\u30ad\u30fc\" : \"\u5024\", \u30fb\u30fb\u30fb} \n<\/code><\/pre>\n<p><strong>\u30ea\u30b9\u30c8\u578b\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u304c0\u304b\u3089\u59cb\u307e\u308a0\u304b\u3089\u9806\u306b\u5024\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u8f9e\u66f8\u578b\u306f{}\u3092\u4f7f\u3044\u56f2\u3044\u307e\u3059\u3002<\/strong><br>\u305d\u306e\u70b9\u306f\u3001\u8f9e\u66f8\u578b\u3068\u66f8\u304d\u65b9\u306f\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u8f9e\u66f8\u578b\u306b\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b90\u304b\u3089\u5024\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br>\u305d\u306e\u305f\u3081\u3001<strong>\u30ea\u30b9\u30c8\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3067\u5024\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306e\u306b\u5bfe\u3057\u3001\u8f9e\u66f8\u578b\u3067\u306f\u4efb\u610f\u306e\u30ad\u30fc\u6587\u5b57\u5217\u3067\u5024\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n<p>\u306f\u3058\u3081\u306b\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><code class=\"python:\">profile = {\"name\": \"tani\", \"email\": \"kazunori-t@cyberbra.in\" }\nprint(profile[\"name\"]) # tani\n\n# \u65b0\u3057\u304f\u8981\u7d20\u3092\u8ffd\u52a0\nprofile[\"gender\"] = \"male\"\n\n# \u65b0\u3057\u304f\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u305f\u8f9e\u66f8\u578b(profile)\u3092\u51fa\u529b\nprint(profile)\n<\/code><\/pre>\n<h2 id=\"i-9\">\u30ea\u30b9\u30c8\u578b\u3068\u8f9e\u66f8\u578b\u306e\u9055\u3044<\/h2>\n<p>\u3053\u3053\u307e\u3067\u30ea\u30b9\u30c8\u578b\u3068\u8f9e\u66f8\u578b\u3092\u5b66\u3093\u3067\u304d\u307e\u3057\u305f\u304c\u3001\u4e21\u8005\u306e\u9055\u3044\u306f\u4f55\u3067\u3057\u3087\u3046\u304b\u3002<br>\u305d\u308c\u306f<strong><em>\u8981\u7d20\u306e\u30a2\u30af\u30bb\u30b9\u306e\u4ed5\u65b9\u304c\u7570\u306a\u308b\u3053\u3068<\/em><\/strong>\u3067\u3059\u3002<br>\u30ea\u30b9\u30c8\u578b\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9(\u6dfb\u3048\u5b57)\u3067\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3057\u305f\u304c\u3001\u8f9e\u66f8\u578b\u306f\u30ad\u30fc\uff08\u6587\u5b57\u5217\u3084\u6570\u5024\uff09\u3067\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br>\u307e\u305f\u3001<strong>\u30ea\u30b9\u30c8\u578b\u306f[]\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001\u8f9e\u66f8\u578b\u306f{}\u3092\u4f7f\u3046\u90e8\u5206\u3082\u7570\u306a\u308a\u307e\u3059\u3002<\/strong><\/p>\n<h2 id=\"i-10\">\u30ea\u30b9\u30c8\u578b\u3068\u8f9e\u66f8\u578b\u306e\u5171\u901a\u3059\u308b\u3068\u3053\u308d<\/h2>\n<p>\u305d\u308c\u3067\u306f\u4e21\u8005\u304c\u5171\u901a\u3059\u308b\u90e8\u5206\u306f\u306a\u3093\u3067\u3057\u3087\u3046\u304b\u3002<br>\u5171\u901a\u3059\u308b\u90e8\u5206\u306f<strong>\u30ea\u30b9\u30c8\u578b\u3082\u8f9e\u66f8\u578b\u3082\u3001\u7570\u306a\u308b\u30c7\u30fc\u30bf\u578b(int\u3084str)\u306a\u3069\u306e\u8981\u7d20\u3092\u683c\u7d0d\u304c\u53ef\u80fd\u3067\u3042\u308b\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<\/strong><br>\u307e\u305f\u3001\u8981\u7d20\u306e\u66f8\u304d\u63db\u3048\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2 id=\"i-11\">\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u3001Python\u306e\u69d8\u3005\u306a\u30c7\u30fc\u30bf\u578b\u306b\u3064\u3044\u3066\u898b\u3066\u304d\u307e\u3057\u305f\u3002<br>\u30ea\u30b9\u30c8\u578b\u3084\u8f9e\u66f8\u578b\u306f\u3001\u6bd4\u8f03\u7684\u6b21\u7ae0\u3067\u5b66\u7fd2\u3059\u308b\u5236\u5fa1\u69cb\u6587\u306a\u3069\u3067\u3088\u304f\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u304f\u306a\u308b\u578b\u3067\u3059\u306e\u3067\u3001\u6271\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 id=\"i-12\">\u6f14\u7fd2\u554f\u984c<\/h2>\n<p>1.2017\u5e74\u304b\u30892021\u5e74\u307e\u3067\u306e\u8981\u7d20\u3092\u6301\u3063\u305fyears_list\u3068\u3044\u3046\u540d\u524d\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<br>2.years_list\u304b\u3089\u4eca\u5e74\u306e\u5e74\u3092\u53d6\u308a\u51fa\u3057\u3066\u3001print\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>3.years_list\u304b\u30892021\u5e74\u3092print\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>4.\u597d\u304d\u306a\u6587\u5b57\u52173\u3064\u3092\u8981\u7d20\u306b\u3057\u3066\u3001\u81ea\u7531\u306a\u5909\u6570\u540d\u3067\u30ea\u30b9\u30c8\u3092\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<br>5.4\u3067\u4f5c\u3063\u305f\u6587\u5b57\u52173\u3064\u3092\u6301\u3064\u30ea\u30b9\u30c8\u306e\u672b\u5c3e\u306b\u65b0\u3057\u304f\u6587\u5b57\u5217\u30921\u3064\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u305f\u3060\u3057\u3001\u666e\u901a\u306b\u8ffd\u52a0\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3042\u308b\u95a2\u6570\u3092\u4f7f\u3063\u3066\u672b\u5c3e\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>6.\u540d\u524d\u3068\u5e74\u9f62\u306e\u30da\u30a2\u304c3\u3064\u3042\u308b\u8f9e\u66f8\u578b\u3092\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<br>\uff08\u540d\u524d\u3068\u5e74\u9f62\u306f\u81ea\u7531\u306b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\uff09key\u304c\u540d\u524d\u3067\u3001value\u304c\u5e74\u9f62\u3068\u3059\u308b<\/p>\n<p><a href=\"https:\/\/qiita.com\/AI_Academy\/private\/c579c49bf1258dff8f8b\" rel=\"nofollow noopener\" target=\"_blank\">\u6f14\u7fd2\u554f\u984c\u56de\u7b54<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"aiacademy.jp\/bootcamp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-300x100.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-768x256.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-940x313.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6b21 \u5168\u4f53\u50cf \u5909\u6570\u3068\u578b \u30c7\u30fc\u30bf\u578b \u6570\u5b57\uff08\u6570\u5024\u578b\uff09 \u6587\u5b57\u5217\u578b \u578b\u5909\u63db(\u30ad\u30e3\u30b9\u30c8) \u30ea\u30b9\u30c8\u578b \u30ea\u30b9\u30c8\u306e\u8ffd\u52a0 \u8f9e\u66f8\u578b \u30ea\u30b9\u30c8\u578b\u3068\u8f9e\u66f8\u578b\u306e\u9055\u3044 \u30ea\u30b9\u30c8\u578b\u3068\u8f9e\u66f8\u578b\u306e\u5171\u901a\u3059\u308b\u3068\u3053\u308d \u307e\u3068\u3081 \u6f14\u7fd2\u554f\u984c \u5168\u4f53\u50cf \u307e\u305a\u306f\u3058\u3081\u306b\u3001Pytho &#8230; <\/p>\n","protected":false},"author":1,"featured_media":487,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,93,90],"tags":[],"class_list":{"0":"post-123","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python","8":"category-93","9":"category-90"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/123","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=123"}],"version-history":[{"count":6,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":4885,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/4885"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/487"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}