{"id":425,"date":"2023-03-30T19:01:40","date_gmt":"2023-03-30T10:01:40","guid":{"rendered":"https:\/\/baitimedx.com\/?p=425"},"modified":"2023-03-30T19:01:42","modified_gmt":"2023-03-30T10:01:42","slug":"%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ab%e3%82%aa%e3%82%b9%e3%82%b9%e3%83%a1%e3%81%ae%e8%a8%80%e8%aa%9e%ef%bc%9fpython%e5%85%a5%e9%96%80-%e5%9f%ba%e7%a4%8e%e3%81%8b%e3%82%89%e5%ad%a6%e3%81%b6%e3%83%97","status":"publish","type":"post","link":"https:\/\/baitimedx.com\/?p=425","title":{"rendered":"\u521d\u5fc3\u8005\u306b\u30aa\u30b9\u30b9\u30e1\u306e\u8a00\u8a9e\uff1fPython\u5165\u9580 - \u57fa\u790e\u304b\u3089\u5b66\u3076\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e16\u754c\u3078\u306e\u7b2c\u4e00\u6b69"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"594\" src=\"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280-1024x594.jpg\" alt=\"\" class=\"wp-image-427\" srcset=\"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280-1024x594.jpg 1024w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280-300x174.jpg 300w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280-768x446.jpg 768w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Python\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>Python\u306f\u3001\u30aa\u30e9\u30f3\u30c0\u4eba\u306e\u30b0\u30a4\u30c9\u30fb\u30f4\u30a1\u30f3\u30fb\u30ed\u30c3\u30b5\u30e0\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305f\u9ad8\u6c34\u6e96\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002Python\u306f\u3001\u7c21\u6f54\u3067\u8aad\u307f\u3084\u3059\u3044\u6587\u6cd5\u304c\u7279\u5fb4\u3067\u3042\u308a\u3001\u521d\u5fc3\u8005\u304b\u3089\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u307e\u3067\u5e45\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001Python\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067\u3042\u308a\u3001\u69d8\u3005\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Python\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3001\u30c7\u30fc\u30bf\u89e3\u6790\u3001\u6a5f\u68b0\u5b66\u7fd2\u3001\u30b7\u30b9\u30c6\u30e0\u30b9\u30af\u30ea\u30d7\u30c8\u3001\u30b2\u30fc\u30e0\u958b\u767a\u306a\u3069\u591a\u5c90\u306b\u6e21\u308b\u5206\u91ce\u3067\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Python\u306e\u57fa\u790e\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python\u306e\u57fa\u672c\u69cb\u6587<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5909\u6570\u3068\u30c7\u30fc\u30bf\u578b<\/h3>\n\n\n\n<p>Python\u3067\u306f\u3001\u5909\u6570\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3001\u305d\u308c\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Python\u3067\u306e\u5909\u6570\u306e\u5ba3\u8a00\u3068\u4ee3\u5165\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>age = 30\nname = \"Taro\"\npi = 3.141592\nis_adult = True\n<\/code><\/pre>\n\n\n\n<p>Python\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul>\n<li>\u6574\u6570\u578b\uff08int\uff09: <code>42<\/code><\/li>\n\n\n\n<li>\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\uff08float\uff09: <code>3.14<\/code><\/li>\n\n\n\n<li>\u6587\u5b57\u5217\u578b\uff08str\uff09: <code>\"Hello, Python!\"<\/code><\/li>\n\n\n\n<li>\u30d6\u30fc\u30eb\u578b\uff08bool\uff09: <code>True<\/code>\u307e\u305f\u306f<code>False<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u6f14\u7b97\u5b50<\/h3>\n\n\n\n<p>Python\u3067\u306f\u3001\u7b97\u8853\u6f14\u7b97\u5b50\u3084\u6bd4\u8f03\u6f14\u7b97\u5b50\u3001\u8ad6\u7406\u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code># \u7b97\u8853\u6f14\u7b97\u5b50\naddition = 7 + 3\nsubtraction = 7 - 3\nmultiplication = 7 * 3\ndivision = 7 \/ 3\nremainder = 7 % 3\nexponentiation = 7 ** 3\n\n# \u6bd4\u8f03\u6f14\u7b97\u5b50\nequal = 7 == 3\nnot_equal = 7 != 3\ngreater_than = 7 &gt; 3\nless_than = 7 &lt; 3\ngreater_than_or_equal = 7 &gt;= 3\nless_than_or_equal = 7 &lt;= 3\n\n# \u8ad6\u7406\u6f14\u7b97\u5b50\nand_operator = True and False\nor_operator = True or False\nnot_operator = not True\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u6761\u4ef6\u6587<\/h3>\n\n\n\n<p>\u6761\u4ef6\u6587\u3092\u4f7f\u3063\u3066\u3001\u6761\u4ef6\u306b\u5fdc\u3058\u3066\u7570\u306a\u308b\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001<code>if<\/code>\u3001<code>elif<\/code>\u3001<code>else<\/code>\u3092\u4f7f\u3063\u305f\u6761\u4ef6\u6587\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>age = 20\n\nif age &lt; 18:\n    print(\"You are a minor.\")\nelif age &gt;= 18 and age &lt; 65:\n    print(\"You are an adult.\")\nelse:\n    print(\"You are a senior.\")\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u30eb\u30fc\u30d7<\/h3>\n\n\n\n<p>\u30eb\u30fc\u30d7\u3092\u4f7f\u3063\u3066\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Python\u3067\u306f\u3001<code>for<\/code>\u30eb\u30fc\u30d7\u3068<code>while<\/code>\u30eb\u30fc\u30d7\u306e2\u7a2e\u985e\u306e\u30eb\u30fc\u30d7\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">for\u30eb\u30fc\u30d7<\/h4>\n\n\n\n<p><code>for<\/code>\u30eb\u30fc\u30d7\u306f\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\uff08\u30ea\u30b9\u30c8\u3084\u30bf\u30d7\u30eb\u306a\u3069\uff09\u3092\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u3001\u305d\u306e\u8981\u7d20\u3092\u9806\u756a\u306b\u51e6\u7406\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001<code>for<\/code>\u30eb\u30fc\u30d7\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>fruits = [\"apple\", \"banana\", \"cherry\"]\n\nfor fruit in fruits:\n    print(fruit)\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">while\u30eb\u30fc\u30d7<\/h4>\n\n\n\n<p><code>while<\/code>\u30eb\u30fc\u30d7\u306f\u3001\u6761\u4ef6\u304c\u771f\u3067\u3042\u308b\u9593\u3001\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001<code>while<\/code>\u30eb\u30fc\u30d7\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>count = 0\n\nwhile count &lt; 5:\n    print(count)\n    count += 1\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u95a2\u6570<\/h3>\n\n\n\n<p>\u95a2\u6570\u306f\u3001\u4e00\u9023\u306e\u51e6\u7406\u3092\u307e\u3068\u3081\u3066\u540d\u524d\u3092\u4ed8\u3051\u3001\u518d\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001Python\u3067\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3001\u547c\u3073\u51fa\u3059\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>def greet(name):\n    print(f\"Hello, {name}!\")\n\ngreet(\"Taro\")\n<\/code><\/pre>\n\n\n\n<p>\u95a2\u6570\u306b\u306f\u3001\u623b\u308a\u5024\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u30012\u3064\u306e\u6570\u5024\u3092\u52a0\u7b97\u3057\u3001\u7d50\u679c\u3092\u8fd4\u3059\u95a2\u6570\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>def add(a, b):\n    return a + b\n\nresult = add(3, 4)\nprint(result)  # 7\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u30ea\u30b9\u30c8<\/h3>\n\n\n\n<p>\u30ea\u30b9\u30c8\u306f\u3001\u8907\u6570\u306e\u8981\u7d20\u3092\u9806\u5e8f\u4ed8\u3051\u3066\u683c\u7d0d\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001Python\u3067\u30ea\u30b9\u30c8\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>fruits = [\"apple\", \"banana\", \"cherry\"]\n\n# \u8981\u7d20\u306e\u8ffd\u52a0\nfruits.append(\"orange\")\n\n# \u8981\u7d20\u306e\u524a\u9664\nfruits.remove(\"banana\")\n\n# \u8981\u7d20\u306e\u53d6\u5f97\nprint(fruits[0])  # apple\n\n# \u8981\u7d20\u306e\u6570\nprint(len(fruits))  # 3\n\n# \u30b9\u30e9\u30a4\u30b9\nprint(fruits[1:3])  # [\"cherry\", \"orange\"]\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u30bf\u30d7\u30eb<\/h3>\n\n\n\n<p>\u30bf\u30d7\u30eb\u306f\u3001\u30ea\u30b9\u30c8\u3068\u540c\u69d8\u306b\u8907\u6570\u306e\u8981\u7d20\u3092\u9806\u5e8f\u4ed8\u3051\u3066\u683c\u7d0d\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u304c\u3001\u30bf\u30d7\u30eb\u306f\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\uff08\u5909\u66f4\u4e0d\u53ef\uff09\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001Python\u3067\u30bf\u30d7\u30eb\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>coordinates = (35.6895, 139.6917)\n\n# \u8981\u7d20\u306e\u53d6\u5f97\nprint(coordinates[0])  # 35.6895\n\n# \u30bf\u30d7\u30eb\u306e\u30a2\u30f3\u30d1\u30c3\u30af\nlatitude, longitude = coordinates<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u8f9e\u66f8\uff08\u518d\u63b2\uff09<\/h3>\n\n\n\n<p>\u8f9e\u66f8\uff08dictionary\uff09\u306f\u3001\u30ad\u30fc\uff08key\uff09\u3068\u5024\uff08value\uff09\u306e\u30da\u30a2\u3092\u683c\u7d0d\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u3002Python\u306e\u8f9e\u66f8\u306f\u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u306b\u3088\u3063\u3066\u5b9f\u88c5\u3055\u308c\u3066\u304a\u308a\u3001\u30ad\u30fc\u3092\u4f7f\u3063\u3066\u9ad8\u901f\u306b\u5024\u3092\u691c\u7d22\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Python\u3067\u8f9e\u66f8\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code># \u8f9e\u66f8\u306e\u4f5c\u6210\nperson = {\n    \"name\": \"Taro\",\n    \"age\": 30,\n    \"city\": \"Tokyo\"\n}\n\n# \u8981\u7d20\u306e\u8ffd\u52a0\nperson[\"job\"] = \"Software Engineer\"\n\n# \u8981\u7d20\u306e\u5909\u66f4\nperson[\"city\"] = \"Osaka\"\n\n# \u8981\u7d20\u306e\u524a\u9664\ndel person[\"age\"]\n\n# \u8981\u7d20\u306e\u53d6\u5f97\nprint(person[\"name\"])  # Taro\n\n# \u30ad\u30fc\u306e\u5b58\u5728\u78ba\u8a8d\nprint(\"city\" in person)  # True\n\n# get\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u8981\u7d20\u306e\u53d6\u5f97\uff08\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8fd4\u3059\uff09\nprint(person.get(\"hobby\", \"Not found\"))  # Not found\n\n# \u30ad\u30fc\u306e\u307f\u3092\u53d6\u5f97\nkeys = person.keys()\n\n# \u5024\u306e\u307f\u3092\u53d6\u5f97\nvalues = person.values()\n\n# \u30ad\u30fc\u3068\u5024\u3092\u540c\u6642\u306b\u53d6\u5f97\nitems = person.items()\n\n# \u8f9e\u66f8\u306e\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\nfor key, value in person.items():\n    print(f\"{key}: {value}\")\n\n# \u8f9e\u66f8\u306e\u30de\u30fc\u30b8\uff08\u66f4\u65b0\uff09\nperson2 = {\n    \"city\": \"Kyoto\",\n    \"hobby\": \"Guitar\"\n}\n\nperson.update(person2)\n<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u8f9e\u66f8\u306f\u975e\u5e38\u306b\u67d4\u8edf\u3067\u5f37\u529b\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3042\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u5834\u9762\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u3092\u69cb\u9020\u5316\u3057\u3001\u52b9\u7387\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001\u8f9e\u66f8\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u64cd\u4f5c\u304c\u7c21\u5358\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8f9e\u66f8<\/h3>\n\n\n\n<p>\u8f9e\u66f8\uff08dictionary\uff09\u306f\u3001\u30ad\u30fc\uff08key\uff09\u3068\u5024\uff08value\uff09\u306e\u30da\u30a2\u3092\u683c\u7d0d\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u3002Python\u306e\u8f9e\u66f8\u306f\u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u306b\u3088\u3063\u3066\u5b9f\u88c5\u3055\u308c\u3066\u304a\u308a\u3001\u30ad\u30fc\u3092\u4f7f\u3063\u3066\u9ad8\u901f\u306b\u5024\u3092\u691c\u7d22\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Python\u3067\u8f9e\u66f8\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code># \u8f9e\u66f8\u306e\u4f5c\u6210\nperson = {\n    \"name\": \"Taro\",\n    \"age\": 30,\n    \"city\": \"Tokyo\"\n}\n\n# \u8981\u7d20\u306e\u8ffd\u52a0\nperson[\"job\"] = \"Software Engineer\"\n\n# \u8981\u7d20\u306e\u5909\u66f4\nperson[\"city\"] = \"Osaka\"\n\n# \u8981\u7d20\u306e\u524a\u9664\ndel person[\"age\"]\n\n# \u8981\u7d20\u306e\u53d6\u5f97\nprint(person[\"name\"])  # Taro\n\n# \u30ad\u30fc\u306e\u5b58\u5728\u78ba\u8a8d\nprint(\"city\" in person)  # True\n\n# get\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u8981\u7d20\u306e\u53d6\u5f97\uff08\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8fd4\u3059\uff09\nprint(person.get(\"hobby\", \"Not found\"))  # Not found\n\n# \u30ad\u30fc\u306e\u307f\u3092\u53d6\u5f97\nkeys = person.keys()\n\n# \u5024\u306e\u307f\u3092\u53d6\u5f97\nvalues = person.values()\n\n# \u30ad\u30fc\u3068\u5024\u3092\u540c\u6642\u306b\u53d6\u5f97\nitems = person.items()\n\n# \u8f9e\u66f8\u306e\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\nfor key, value in person.items():\n    print(f\"{key}: {value}\")\n\n# \u8f9e\u66f8\u306e\u30de\u30fc\u30b8\uff08\u66f4\u65b0\uff09\nperson2 = {\n    \"city\": \"Kyoto\",\n    \"hobby\": \"Guitar\"\n}\n\nperson.update(person2)\n<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u8f9e\u66f8\u306f\u975e\u5e38\u306b\u67d4\u8edf\u3067\u5f37\u529b\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3042\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u5834\u9762\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u3092\u69cb\u9020\u5316\u3057\u3001\u52b9\u7387\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001\u8f9e\u66f8\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u64cd\u4f5c\u304c\u7c21\u5358\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f8b\u5916\u51e6\u7406<\/h3>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u4e2d\u306b\u30a8\u30e9\u30fc\u3084\u4f8b\u5916\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u4f8b\u5916\u51e6\u7406\u3092\u4f7f\u3063\u3066\u9069\u5207\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Python\u3067\u4f8b\u5916\u51e6\u7406\u3092\u884c\u3046\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pythonCopy code<code>try:\n    result = 10 \/ 0\nexcept ZeroDivisionError as e:\n    print(f\"An error occurred: {e}\")\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Python\u306e\u57fa\u672c\u69cb\u6587\u3084\u30c7\u30fc\u30bf\u578b\u3001\u5236\u5fa1\u69cb\u9020\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u3001\u4f8b\u5916\u51e6\u7406\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u57fa\u790e\u3092\u7406\u89e3\u3057\u3001\u5b9f\u8df5\u3059\u308b\u3053\u3068\u3067\u3001Python\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304c\u52b9\u7387\u7684\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Python\u306f\u3001\u305d\u306e\u7c21\u6f54\u3055\u3084\u53ef\u8aad\u6027\u306e\u9ad8\u3055\u304b\u3089\u3001\u521d\u5fc3\u8005\u306b\u3082\u6271\u3044\u3084\u3059\u3044\u8a00\u8a9e\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001Python\u306f\u975e\u5e38\u306b\u591a\u6a5f\u80fd\u3067\u3042\u308a\u3001\u591a\u5c90\u306b\u308f\u305f\u308b\u5206\u91ce\u3067\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u304b\u3089\u3082Python\u306e\u30b9\u30ad\u30eb\u3092\u78e8\u3044\u3066\u3044\u304f\u304d\u3063\u304b\u3051\u306b\u306a\u308c\u308b\u3068\u5e78\u3044\u3067\u3059\uff01<\/p>\n\n\n\n<p>\u4eca\u5f8c\u3082\u3001IT\u3084DX\u3001\u6295\u8cc7\u7b49\u306b\u95a2\u3059\u308b\u4eba\u751f\u3092\u8c4a\u304b\u306b\u3057\u3066\u81ea\u7531\u306a\u6642\u9593\u3092\u5897\u3084\u305b\u308b\u3088\u3046\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u306e\u3067\u662f\u975e\u304a\u697d\u3057\u307f\u306b\uff01<\/p>\n\n\n\n<p><strong>\u2193\u3000\u30aa\u30b9\u30b9\u30e1\u8a18\u4e8b\u3000\u2193<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=419\">JavaScript\u5165\u9580 &#8211; \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u52d5\u4f5c\u3092\u4f5c\u308b\uff1f\u57fa\u790e\u304b\u3089\u5b66\u3076\u30a6\u30a7\u30d6\u958b\u767a\u306e\u8981<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=415\">Flutter\u5165\u9580 &#8211; \u57fa\u790e\u304b\u3089\u59cb\u3081\u308b\u7f8e\u3057\u3044\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u958b\u767a<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=412\">PHP\u5165\u9580 &#8211; \u57fa\u672c\u69cb\u6587\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3001\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u307e\u3067\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3068\u306f\uff1f Python\u306f\u3001\u30aa\u30e9\u30f3\u30c0\u4eba\u306e\u30b0\u30a4\u30c9\u30fb\u30f4\u30a1\u30f3\u30fb\u30ed\u30c3\u30b5\u30e0\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305f\u9ad8\u6c34\u6e96\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002Python\u306f\u3001\u7c21\u6f54\u3067\u8aad\u307f\u3084\u3059\u3044\u6587\u6cd5\u304c\u7279\u5fb4\u3067\u3042\u308a\u3001\u521d\u5fc3\u8005\u304b\u3089\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u307e &#8230; <\/p>\n","protected":false},"author":1,"featured_media":427,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[10],"tags":[24,17,16],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280.jpg","_links":{"self":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/425"}],"collection":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=425"}],"version-history":[{"count":2,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/425\/revisions"}],"predecessor-version":[{"id":428,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/425\/revisions\/428"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/media\/427"}],"wp:attachment":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}