{"id":23804,"date":"2017-05-26T18:37:47","date_gmt":"2017-05-26T09:37:47","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=23804"},"modified":"2024-05-06T11:42:41","modified_gmt":"2024-05-06T02:42:41","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%af%94%e8%bc%83%e6%96%b9%e6%b3%95%e3%81%be%e3%81%a8%e3%82%81","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/23804","title":{"rendered":"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081"},"content":{"rendered":"\n<p>\u3042\u308b\u6587\u5b57\u3068\u3042\u308b\u6587\u5b57\u304c\u540c\u3058\u304b\u305d\u3046\u3067\u306f\u306a\u3044\u304b\u3092\u5224\u5b9a\u3059\u308b\u3053\u3068\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u4e0a\u3067\u3088\u304f\u3042\u308a\u307e\u3059\u3002Python\u3067\u306f\u6587\u5b57\u5217\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306e\u4fbf\u5229\u306a\u624b\u6cd5\u304c\u3044\u308d\u3044\u308d\u3068\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<\/p>\n\n\n<div class=\"box01\">\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>\u6587\u5b57\u5217\u306e\u57fa\u672c\u7684\u306a\u6bd4\u8f03\u65b9\u6cd5<\/b><\/li>\n\n\n\n<li><b>\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u306b\u3066\u6b63\u898f\u8868\u73fe\u3092\u6d3b\u7528\u3059\u308b\u65b9\u6cd5<\/b><\/li>\n\n\n\n<li><b>\u6587\u5b57\u5217\u306e\u5fdc\u7528\u7684\u306a\u6bd4\u8f03\u65b9\u6cd5<\/b><\/li>\n\n\n\n<li><b>\u6bd4\u8f03\u6f14\u7b97\u5b50\u201d==\u201d\u3068is\u6f14\u7b97\u5b50\u306e\u9055\u3044\u306b\u3064\u3044\u3066<\/b><\/li>\n<\/ul>\n\n\n<\/div>\n\n\n\n<p>\u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001\u5b9f\u8df5\u7684\u306a\u5185\u5bb9\u306b\u95a2\u3057\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u6b63\u3057\u304f\u7406\u89e3\u3057\u3001\u5fc5\u8981\u306a\u5834\u9762\u3067\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\uff01<\/p>\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>\u672c\u8a18\u4e8b\u3092\u8aad\u3080\u524d\u306b\u3001Python\u304c\u3069\u3093\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306a\u306e\u304b\u3092\u304a\u3055\u3089\u3044\u3057\u3066\u304a\u304d\u305f\u3044\u4eba\u306f\u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u2192&nbsp;<a href=\"https:\/\/www.sejuku.net\/blog\/7720\">Python\u3068\u306f\uff1f\u7279\u5fb4\u3084\u3067\u304d\u308b\u3053\u3068\u3001\u6d3b\u7528\u4f8b\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u7c21\u5358\u306b\u89e3\u8aac<\/a><\/p>\n\n\n\n<p>\u306a\u304a\u3001\u305d\u306e\u4ed6\u306ePython\u306e\u8a18\u4e8b\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/www.sejuku.net\/blog\/147190\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u5b57\u5217\u306e\u57fa\u672c\u7684\u306a\u6bd4\u8f03\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u6587\u5b57\u5217\u306e\u57fa\u672c\u7684\u306a\u6bd4\u8f03\u65b9\u6cd5\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u306b\u3001\u5177\u4f53\u7684\u306a\u4f8b\u3092\u3042\u3052\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u4f1a\u54e1\u767b\u9332\u3092\u3057\u3066\u5229\u7528\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3044\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u6642\u306b\u30e6\u30fc\u30b6ID\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u3067\u672c\u4eba\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u51e6\u7406\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u4eba\u78ba\u8a8d\u306e\u5224\u5b9a\u65b9\u6cd5\u306f\u30b7\u30b9\u30c6\u30e0\u8981\u4ef6\u306b\u3088\u3063\u3066\u69d8\u3005\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u4f8b\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5224\u5b9a\u65b9\u6cd5\u3060\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><div class=\"box01\">\u5224\u5b9a\u65b9\u6cd5\uff1a<br>\n\u753b\u9762\u4e0a\u304b\u3089\u5165\u529b\u3055\u308c\u305f\u30e6\u30fc\u30b6ID\u306b\u7d10\u3065\u304f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6587\u5b57\u5217\u304c\u4e8b\u524d\u306b\u767b\u9332\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6587\u5b57\u5217\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3002<\/div><\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306a\u51e6\u7406\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u3001\u6bd4\u8f03\u6f14\u7b97\u5b50\u3068\u3044\u3046\u3082\u306e\u3092\u6d3b\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u30b5\u30f3\u30d7\u30eb\u3092\u307f\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dbPw = \"zaq12wsx\" #\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\n \ninputVal_1 = \"zaq12wsx\" #\u30e6\u30fc\u30b6\u5165\u529b\u5024\u4f8b1\nprint(\"inputVal_1:{0}\".format(inputVal_1 == dbPw))\n \ninputVal_2 = \"123456\"  #\u30e6\u30fc\u30b6\u5165\u529b\u5024\u4f8b2\nprint(\"inputVal_2:{0}\".format(inputVal_2 == dbPw))\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">inputVal_1:True\ninputVal_2:False\n<\/pre>\n\n\n\n<p>\u6587\u5b57\u5217\u540c\u58eb\u306e\u6bd4\u8f03\u306b\u201d==\u201d\u3068\u3044\u3046\u6bd4\u8f03\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3001\u5de6\u53f3\u306e\u6587\u5b57\u5217\u304c\u4e00\u81f4\u3059\u308b\u5834\u5408\u306fTrue\u3001\u7570\u306a\u308b\u5834\u5408\u306fFalse\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3057\u3001\u6587\u5b57\u5217\u540c\u58eb\u304c\u7570\u306a\u308b\u5834\u5408\u306bTrue\u3092\u8fd4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u201d!=\u201d\u3068\u3044\u3046\u6bd4\u8f03\u6f14\u7b97\u5b50\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u3067\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u6b21\u306b\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u306b\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u307f\u3066\u3044\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6b63\u898f\u8868\u73fe\u3068\u306f\u6587\u5b57\u5217\u306e\u96c6\u307e\u308a\u3092\u4e00\u3064\u306e\u6587\u5b57\u5217\u3067\u8868\u3059\u305f\u3081\u306e\u624b\u6cd5\u3067\u3042\u308a\u3001\u6587\u5b57\u5217\u6bd4\u8f03\u306b\u304a\u3044\u3066\u3068\u3066\u3082\u4fbf\u5229\u306a\u3082\u306e\u3067\u3059\u3002\u3053\u3053\u3067\u3082\u5177\u4f53\u7684\u306a\u4f8b\u3092\u5143\u306b\u4f7f\u3044\u65b9\u3092\u307f\u3066\u3044\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u30aa\u30f3\u30e9\u30a4\u30f3\u30b7\u30e7\u30c3\u30d7\u306e\u6ce8\u6587\u753b\u9762\u306b\u3066\u96fb\u8a71\u756a\u53f7\u306e\u5f62\u5f0f\u304c\u6b63\u3057\u304f\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u51e6\u7406\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u96fb\u8a71\u756a\u53f7\u306e\u5f62\u5f0f\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<br>\n\u201d2\u6841\u306e\u6570\u5b57+\u30cf\u30a4\u30d5\u30f3+4\u6841\u306e\u6570\u5b57+\u30cf\u30a4\u30d5\u30f3+4\u6841\u306e\u6570\u5b57\u201d (\u4f8b 03-1234-5678)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import re\n \nresult = \"\"\ninput_tel1 = \"03-1111-2222\"\ninput_tel2 = \"03-452-22234\"\n \ndef check(tel):\n    if re.match('[0-9]{2}-[0-9]{4}-[0-9]{4}', tel):\n        return \"OK\"\n    else:\n        return \"NG\"\n \nprint(\"input_tel1{0}\".format(check(input_tel1)))\nprint(\"input_tel2{0}\".format(check(input_tel2)))\n\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">input_tel1:OK\ninput_tel2:NG\n<\/pre>\n\n\n\n<p>\u6b63\u898f\u8868\u73fe\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30dd\u30fc\u30c8(import re)\u3057\u305f\u306e\u3061\u306b\u3001match\u95a2\u6570\u3092\u4f7f\u3044\u5165\u529b\u3055\u308c\u305f\u96fb\u8a71\u756a\u53f7\u304c\u5f62\u5f0f\u306b\u4e00\u81f4\u3059\u308b\u304b\u6bd4\u8f03\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u69d8\u3005\u306a\u30d1\u30bf\u30fc\u30f3\u306e\u6587\u5b57\u5217\u6bd4\u8f03\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u5b57\u5217\u306e\u5fdc\u7528\u7684\u306a\u6bd4\u8f03\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u3067\u306f\u6b21\u306b\u3001\u3082\u3046\u5c11\u3057\u5fdc\u7528\u7684\u306a\u6bd4\u8f03\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">in\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u305f\u6bd4\u8f03\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u6587\u5b57\u5217\u306b\u5bfe\u3057\u3066\u6bd4\u8f03\u3059\u308b\u6587\u5b57\u5217\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u308b\u969b\u306bin\u6f14\u7b97\u5b50\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u5165\u529b\u3055\u308c\u305fURL\u306e\u4e2d\u306b\u542b\u307e\u308c\u308b\u30c9\u30e1\u30a4\u30f3\u306e\u6587\u5b57\u5217\u3092in\u6f14\u7b97\u5b50\u3067\u8abf\u3079\u308b\u51e6\u7406\u306e\u4f8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">url = 'http:\/\/www.google.com\/sample\/top\/'\ngoogleDomain = 'www.google.com'\nbingDomain = 'www.bing.com'\n \nprint(googleDomain in url)\nprint(bingDomain in url)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">True\nFalse\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u6587\u5b57\u5217\u306b\u65e5\u672c\u8a9e\u3092\u542b\u3080\u5834\u5408\u306e\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<p>\u6b21\u306b\u3001\u6587\u5b57\u5217\u306b\u65e5\u672c\u8a9e\u3092\u542b\u3080\u5834\u5408\u306e\u6bd4\u8f03\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u6ce8\u610f\u70b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u65e5\u672c\u8a9e\u3092\u542b\u3080\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u3001Python2\u7cfb\u3068Python3\u7cfb\u3067\u7570\u306a\u308b\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306fPython2\u7cfb\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#Python2\u7cfb\u306e\u5834\u5408\naddress = '\u6771\u4eac\u90fd\u65b0\u5bbf\u533a\u6771\u65b0\u5bbf\uff11\u2212\uff11\u2212\uff11'\nunicode_address = u'\u6771\u4eac\u90fd\u65b0\u5bbf\u533a\u6771\u65b0\u5bbf\uff11\u2212\uff11\u2212\uff11'\n \nprint(u'\u6771\u4eac\u90fd' in unicode_address)\nprint(u'\u6771\u4eac\u90fd' in address)  #UnicodeDecodeError\u304c\u767a\u751f\nprint('\u6771\u4eac\u90fd' in unicode_address)  #UnicodeDecodeError\u304c\u767a\u751f\nprint('\u6771\u4eac\u90fd' in address)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)\n<\/pre>\n\n\n\n<p>\u6b21\u306ePython3\u7cfb\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#Python3\u7cfb\u306e\u5834\u5408\naddress = '\u6771\u4eac\u90fd\u65b0\u5bbf\u533a\u6771\u65b0\u5bbf\uff11\u2212\uff11\u2212\uff11'\nunicode_address = u'\u6771\u4eac\u90fd\u65b0\u5bbf\u533a\u6771\u65b0\u5bbf\uff11\u2212\uff11\u2212\uff11'\n \nprint(u'\u6771\u4eac\u90fd' in unicode_address)\nprint(u'\u6771\u4eac\u90fd' in address) \nprint('\u6771\u4eac\u90fd' in unicode_address) \nprint('\u6771\u4eac\u90fd' in address)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">True\nTrue\nTrue\nTrue\n<\/pre>\n\n\n\n<p>Python\u306e\u6587\u5b57\u5217\u306b\u306f\u300cstr\u578b\u300d\u3068\u300cunicode\u578b\u300d\u306e2\u3064\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u6587\u5b57\u5217\u306e\u6700\u521d\u306bu\u3092\u3064\u3051\u308b\u3053\u3068\u3067unicode\u578b\u306e\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Python2\u7cfb\u3067\u306f\u6587\u5b57\u5217\u578b\u3068unicode\u578b\u3092\u6587\u5b57\u5217\u6bd4\u8f03\u3059\u308b\u3068UnicodeDecodeError\u304c\u767a\u751f\u3057\u3001\u6b63\u5e38\u306b\u51e6\u7406\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001unicode\u578b\u540c\u58eb\u3001\u6587\u5b57\u5217\u578b\u540c\u58eb\u306b\u3066\u6bd4\u8f03\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u3067\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001Python3\u7cfb\u3067\u306funicode\u578b\u3001\u6587\u5b57\u5217\u578b\u3092\u610f\u8b58\u305b\u305a\u306b\u554f\u984c\u306a\u304f\u6bd4\u8f03\u51e6\u7406\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6bd4\u8f03\u6f14\u7b97\u5b50\u201d==\u201d\u3068is\u6f14\u7b97\u5b50\u306e\u9055\u3044\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u6f14\u7b97\u5b50\u3068\u3057\u3066\u201d==\u201d\u306e\u4ed6\u306bis\u6f14\u7b97\u5b50\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3059\u304c\u3001\u5148\u306b\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6587\u5b57\u5217\u304c\u540c\u3058\u5024\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u308b\u5834\u5408\u306f<b>\u201d==\u201d\u3092\u4f7f\u3044\u3001is\u6f14\u7b97\u5b50\u306f\u4f7f\u7528\u3057\u306a\u3044<\/b>\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u306a\u305c\u306a\u3089is\u6f14\u7b97\u5b50\u306f\u6587\u5b57\u5217\u306e\u5024\u304c\u540c\u3058\u3067\u3082\u7d50\u679c\u304cFalse(\u7570\u306a\u308b\uff09\u3068\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u305c\u7570\u306a\u308b\u7d50\u679c\u304c\u3067\u308b\u5834\u5408\u304c\u3042\u308b\u304b\u3067\u3059\u304c\u3001is\u6f14\u7b97\u5b50\u306f\u6587\u5b57\u5217\u306e\u5024\u304c\u540c\u3058\u304b\u3092\u5224\u5b9a\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u540c\u3058\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\n<\/p>\n\n\n            <a href=\"https:\/\/www.sejuku.net\/blog\/6017\" 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\/2016\/06\/6b0525d737e30e7c5e26a4bda185f61f-150x85.png\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u30af\u30e9\u30b9\u3063\u3066\u306a\u306b\uff1f\u5c02\u9580\u7528\u8a9e\u304b\u3089\u8a2d\u8a08\u307e\u3067\u5fb9\u5e95\u89e3\u8aac<\/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<p>is\u6f14\u7b97\u5b50\u306e\u5229\u7528\u304c\u63a8\u5968\u3055\u308c\u308b\u5834\u9762\u306fNone\u3068\u6bd4\u8f03\u3059\u308b\u5834\u5408\u3067\u3059\u3002<br>\n\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u201d==\u201d\u3068\u6bd4\u3079\u3066is\u6f14\u7b97\u5b50\u306e\u65b9\u304c\u6bd4\u8f03\u51e6\u7406\u306e\u901f\u5ea6\u304c\u65e9\u3044\u70b9\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import re\n \ninput_tel = \"03-333-42222\"\n \nif re.match('[0-9]{2}-[0-9]{4}-[0-9]{4}', input_tel) is None:\n    print('\u6b63\u3057\u3044\u96fb\u8a71\u756a\u53f7\u306e\u5f62\u5f0f\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044')\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u6b63\u3057\u3044\u96fb\u8a71\u756a\u53f7\u306e\u5f62\u5f0f\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u306b\u3064\u3044\u3066\u3001\u57fa\u672c\u7684\u306a\u65b9\u6cd5\u304b\u3089\u95a2\u9023\u3059\u308b\u69d8\u3005\u306a\u6bd4\u8f03\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5177\u4f53\u4f8b\u3092\u4ea4\u3048\u306a\u304c\u3089\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u306b\u306f\u6bd4\u8f03\u6f14\u7b97\u5b50(&#8220;==&#8221;\u3082\u3057\u304f\u306f&#8221;!=&#8221;)\u3092\u7528\u3044\u3001\u5c11\u3057\u8907\u96d1\u306a\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u306b\u306f\u6b63\u898f\u8868\u73fe\u3082\u6d3b\u7528\u3059\u308b\u3053\u3068\u3001\u305d\u3057\u3066is\u6f14\u7b97\u5b50\u306fNone\u3068\u306e\u6bd4\u8f03\u3067\u7528\u3044\u308b\u3053\u3068\u306a\u3069\u3092\u304a\u4f1d\u3048\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6b63\u3057\u3044\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u3092\u8eab\u306b\u3064\u3051\u3066\u3001\u5b9f\u8df5\u306e\u5834\u3067\u305c\u3072\u6d3b\u304b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3082\u3057\u3001\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3042\u308b\u6587\u5b57\u3068\u3042\u308b\u6587\u5b57\u304c\u540c\u3058\u304b\u305d\u3046\u3067\u306f\u306a\u3044\u304b\u3092\u5224\u5b9a\u3059\u308b\u3053\u3068\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u4e0a\u3067\u3088\u304f\u3042\u308a\u307e\u3059\u3002Python\u3067\u306f\u6587\u5b57\u5217\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306e\u4fbf\u5229\u306a\u624b\u6cd5\u304c\u3044\u308d\u3044\u308d\u3068\u5b58\u5728\u3057\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 \u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001\u5b9f\u8df5\u7684\u306a\u5185\u5bb9 [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":23806,"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-23804","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.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 \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\/23804\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 \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\/23804\" \/>\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:published_time\" content=\"2017-05-26T09:37:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:42:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23804.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\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@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\\\/23804#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081\",\"datePublished\":\"2017-05-26T09:37:47+00:00\",\"dateModified\":\"2024-05-06T02:42:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804\"},\"wordCount\":76,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/23804.jpg\",\"keywords\":[\"python\"],\"articleSection\":[\"Python\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804\",\"name\":\"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/23804.jpg\",\"datePublished\":\"2017-05-26T09:37:47+00:00\",\"dateModified\":\"2024-05-06T02:42:41+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 \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\\\/23804#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/23804.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/23804.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23804#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081\"}]},{\"@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\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 \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\/23804","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 \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\/23804","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-05-26T09:37:47+00:00","article_modified_time":"2024-05-06T02:42:41+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23804.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/23804#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/23804"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081","datePublished":"2017-05-26T09:37:47+00:00","dateModified":"2024-05-06T02:42:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/23804"},"wordCount":76,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/23804#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23804.jpg","keywords":["python"],"articleSection":["Python\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/23804","url":"https:\/\/www.sejuku.net\/blog\/23804","name":"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/23804#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/23804#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23804.jpg","datePublished":"2017-05-26T09:37:47+00:00","dateModified":"2024-05-06T02:42:41+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081 \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\/23804#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/23804"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/23804#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23804.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23804.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/23804#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Python\u5165\u9580\u3011\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u65b9\u6cd5\u307e\u3068\u3081"}]},{"@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\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/23804","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\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=23804"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/23804\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/23806"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=23804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=23804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=23804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}