{"id":43919,"date":"2025-08-06T14:05:41","date_gmt":"2025-08-06T05:05:41","guid":{"rendered":"https:\/\/techgym.jp\/?p=43919"},"modified":"2025-08-06T14:08:58","modified_gmt":"2025-08-06T05:08:58","slug":"setdefault","status":"publish","type":"post","link":"https:\/\/techgym.jp\/column\/setdefault\/","title":{"rendered":"Python\u8f9e\u66f8\u306esetdefault\u30e1\u30bd\u30c3\u30c9\u5b8c\u5168\u30ac\u30a4\u30c9\uff1a\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u3068\u304d\u306e\u307f\u5b89\u5168\u306b\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u00a0<\/p>\n<p>Python\u3067\u8f9e\u66f8\u64cd\u4f5c\u3092\u884c\u3046\u969b\u3001\u300c\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304b\u3089\u5024\u3092\u8ffd\u52a0\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u5834\u9762\u306f\u983b\u7e41\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u305d\u3093\u306a\u3068\u304d\u306b\u4fbf\u5229\u306a\u306e\u304c<code>setdefault<\/code>\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001setdefault\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u5fdc\u7528\u4f8b\u307e\u3067\u3001\u5b9f\u8df5\u7684\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>setdefault\u30e1\u30bd\u30c3\u30c9\u3068\u306f<\/h2>\n<p><code>setdefault<\/code>\u306f\u3001Python\u8f9e\u66f8\u306e\u7d44\u307f\u8fbc\u307f\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u6307\u5b9a\u3057\u305f\u30ad\u30fc\u304c\u8f9e\u66f8\u306b\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306e\u307f\u3001\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30ad\u30fc\u304c\u65e2\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001\u65e2\u5b58\u306e\u5024\u3092\u305d\u306e\u307e\u307e\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h3>\u57fa\u672c\u7684\u306a\u69cb\u6587<\/h3>\n<pre><code class=\"language-python\">\u8f9e\u66f8.setdefault(\u30ad\u30fc, \u30c7\u30d5\u30a9\u30eb\u30c8\u5024)\n<\/code><\/pre>\n<h2>\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<h3>\u30b7\u30f3\u30d7\u30eb\u306a\u4f8b<\/h3>\n<pre><code class=\"language-python\"># \u7a7a\u306e\u8f9e\u66f8\u3092\u4f5c\u6210\nuser_data = {}\n\n# \u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u306e\u3067\u8ffd\u52a0\u3055\u308c\u308b\nresult = user_data.setdefault('name', '\u533f\u540d')\nprint(result)  # '\u533f\u540d'\nprint(user_data)  # {'name': '\u533f\u540d'}\n\n# \u30ad\u30fc\u304c\u65e2\u306b\u5b58\u5728\u3059\u308b\u306e\u3067\u65e2\u5b58\u306e\u5024\u304c\u8fd4\u3055\u308c\u308b\nresult = user_data.setdefault('name', '\u592a\u90ce')\nprint(result)  # '\u533f\u540d'\nprint(user_data)  # {'name': '\u533f\u540d'}\n<\/code><\/pre>\n<h3>\u6570\u5024\u306e\u521d\u671f\u5316<\/h3>\n<pre><code class=\"language-python\">counter = {}\nitems = ['apple', 'banana', 'apple', 'orange']\n\nfor item in items:\n    counter.setdefault(item, 0)\n    counter[item] += 1\n\nprint(counter)  # {'apple': 2, 'banana': 1, 'orange': 1}\n<\/code><\/pre>\n<h2>setdefault\u3068in\u6f14\u7b97\u5b50\u306e\u6bd4\u8f03<\/h2>\n<h3>\u5f93\u6765\u306e\u65b9\u6cd5\uff08\u63a8\u5968\u3055\u308c\u306a\u3044\uff09<\/h3>\n<pre><code class=\"language-python\"># if\u6587\u3068in\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\ndata = {}\nif 'users' not in data:\n    data['users'] = []\ndata['users'].append('\u592a\u90ce')\n<\/code><\/pre>\n<h3>setdefault\u3092\u4f7f\u7528\uff08\u63a8\u5968\uff09<\/h3>\n<pre><code class=\"language-python\"># setdefault\u3092\u4f7f\u7528\ndata = {}\ndata.setdefault('users', []).append('\u592a\u90ce')\n<\/code><\/pre>\n<p>setdefault\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u304c1\u884c\u3067\u6e08\u307f\u3001\u53ef\u8aad\u6027\u3082\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u5b9f\u8df5\u7684\u306a\u5fdc\u7528\u4f8b<\/h2>\n<h3>\u30ea\u30b9\u30c8\u306e\u521d\u671f\u5316\u3068\u8ffd\u52a0<\/h3>\n<pre><code class=\"language-python\"># \u30b0\u30eb\u30fc\u30d7\u5316\u306e\u4f8b\nstudents = [\n    ('\u592a\u90ce', 'A\u7d44'),\n    ('\u82b1\u5b50', 'B\u7d44'),\n    ('\u6b21\u90ce', 'A\u7d44'),\n    ('\u7f8e\u9999', 'B\u7d44')\n]\n\ngroups = {}\nfor name, class_name in students:\n    groups.setdefault(class_name, []).append(name)\n\nprint(groups)\n# {'A\u7d44': ['\u592a\u90ce', '\u6b21\u90ce'], 'B\u7d44': ['\u82b1\u5b50', '\u7f8e\u9999']}\n<\/code><\/pre>\n<h3>\u8f9e\u66f8\u306e\u521d\u671f\u5316<\/h3>\n<pre><code class=\"language-python\"># \u30cd\u30b9\u30c8\u3057\u305f\u8f9e\u66f8\u306e\u521d\u671f\u5316\nconfig = {}\nconfig.setdefault('database', {})['host'] = 'localhost'\nconfig.setdefault('database', {})['port'] = 5432\n\nprint(config)\n# {'database': {'host': 'localhost', 'port': 5432}}\n<\/code><\/pre>\n<h3>\u30ab\u30a6\u30f3\u30bf\u30fc\u6a5f\u80fd\u306e\u5b9f\u88c5<\/h3>\n<pre><code class=\"language-python\">text = \"hello world\"\nchar_count = {}\n\nfor char in text:\n    if char != ' ':  # \u30b9\u30da\u30fc\u30b9\u3092\u9664\u5916\n        char_count.setdefault(char, 0)\n        char_count[char] += 1\n\nprint(char_count)\n# {'h': 1, 'e': 1, 'l': 3, 'o': 2, 'w': 1, 'r': 1, 'd': 1}\n<\/code><\/pre>\n<h2>\u3088\u304f\u3042\u308b\u9593\u9055\u3044\u3068\u6ce8\u610f\u70b9<\/h2>\n<h3>\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5171\u6709\u554f\u984c<\/h3>\n<pre><code class=\"language-python\"># \u5371\u967a\u306a\u4f8b\uff1a\u540c\u3058\u30ea\u30b9\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5171\u6709\u3055\u308c\u308b\ndefault_list = []\ndata = {}\ndata.setdefault('key1', default_list).append(1)\ndata.setdefault('key2', default_list).append(2)\nprint(data)  # {'key1': [1, 2], 'key2': [1, 2]}\n\n# \u5b89\u5168\u306a\u4f8b\uff1a\u6bce\u56de\u65b0\u3057\u3044\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\ndata = {}\ndata.setdefault('key1', []).append(1)\ndata.setdefault('key2', []).append(2)\nprint(data)  # {'key1': [1], 'key2': [2]}\n<\/code><\/pre>\n<h3>defaultdict\u3068\u306e\u4f7f\u3044\u5206\u3051<\/h3>\n<p>collections\u30e2\u30b8\u30e5\u30fc\u30eb\u306e<code>defaultdict<\/code>\u3082\u4f3c\u305f\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u304c\u3001\u7528\u9014\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">from collections import defaultdict\n\n# defaultdict\u306e\u4f8b\ndd = defaultdict(list)\ndd['key1'].append('value1')\n\n# setdefault\u306e\u4f8b\nregular_dict = {}\nregular_dict.setdefault('key1', []).append('value1')\n<\/code><\/pre>\n<h2>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u8003\u616e<\/h2>\n<p>setdefault\u306f\u52b9\u7387\u7684\u3067\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u8907\u96d1\u306a\u51e6\u7406\u3092\u4f34\u3046\u5834\u5408\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\"># \u52b9\u7387\u7684\ncache = {}\nresult = cache.setdefault('key', expensive_calculation())\n\n# \u3088\u308a\u52b9\u7387\u7684\uff08\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u8a08\u7b97\u3092\u56de\u907f\uff09\nif 'key' not in cache:\n    cache['key'] = expensive_calculation()\nresult = cache['key']\n<\/code><\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p><code>setdefault<\/code>\u30e1\u30bd\u30c3\u30c9\u306f\u3001Python\u8f9e\u66f8\u64cd\u4f5c\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002\u30ad\u30fc\u306e\u5b58\u5728\u78ba\u8a8d\u3068\u5024\u306e\u8a2d\u5b9a\u30921\u884c\u3067\u884c\u3048\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u306e\u7c21\u6f54\u6027\u3068\u53ef\u8aad\u6027\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002\u7279\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5834\u9762\u3067\u5a01\u529b\u3092\u767a\u63ee\u3057\u307e\u3059\uff1a<\/p>\n<ul>\n<li>\u30ea\u30b9\u30c8\u3084\u30bb\u30c3\u30c8\u306e\u521d\u671f\u5316<\/li>\n<li>\u30ab\u30a6\u30f3\u30bf\u30fc\u6a5f\u80fd\u306e\u5b9f\u88c5<\/li>\n<li>\u30b0\u30eb\u30fc\u30d7\u5316\u51e6\u7406<\/li>\n<li>\u8a2d\u5b9a\u5024\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a<\/li>\n<\/ul>\n<p>\u305f\u3060\u3057\u3001\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6271\u3046\u969b\u306e\u5171\u6709\u554f\u984c\u3084\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3078\u306e\u5f71\u97ff\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u9069\u5207\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a Pythonic \u3067\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u25a0\u30d7\u30ed\u30f3\u30d7\u30c8\u3060\u3051\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30a2\u30d7\u30ea\u3092\u958b\u767a\u30fb\u516c\u958b\u3057\u3066\u307f\u305f\uff01\uff01<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"XIflJKGcwP\"><a href=\"https:\/\/techgym.jp\/column\/ori-app\/\">\u30d7\u30ed\u30f3\u30d7\u30c8\u3060\u3051\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30a2\u30d7\u30ea\u3092\u958b\u767a\u30fb\u516c\u958b\u3057\u3066\u307f\u305f\uff01\uff01<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u30d7\u30ed\u30f3\u30d7\u30c8\u3060\u3051\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30a2\u30d7\u30ea\u3092\u958b\u767a\u30fb\u516c\u958b\u3057\u3066\u307f\u305f\uff01\uff01&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/column\/ori-app\/embed\/#?secret=T5SEbduYDz#?secret=XIflJKGcwP\" data-secret=\"XIflJKGcwP\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u25a0AI\u6642\u4ee3\u306e\u7b2c\u4e00\u6b69\uff01\u300cAI\u99c6\u52d5\u958b\u767a\u30b3\u30fc\u30b9\u300d\u306f\u3058\u3081\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<p>\u30c6\u30c3\u30af\u30b8\u30e0\u6771\u4eac\u672c\u6821\u3067\u5148\u884c\u958b\u59cb\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"R4jfIcqPSg\"><a href=\"https:\/\/techgym.jp\/about\/ai-driven-development\/\">AI\u99c6\u52d5\u958b\u767a\/\u751f\u6210AI\u30a8\u30f3\u30b8\u30cb\u30a2\u30b3\u30fc\u30b9\uff08\u521d\u5fc3\u8005\u5411\u3051\uff09<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;AI\u99c6\u52d5\u958b\u767a\/\u751f\u6210AI\u30a8\u30f3\u30b8\u30cb\u30a2\u30b3\u30fc\u30b9\uff08\u521d\u5fc3\u8005\u5411\u3051\uff09&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/about\/ai-driven-development\/embed\/#?secret=mzm2GPA5cU#?secret=R4jfIcqPSg\" data-secret=\"R4jfIcqPSg\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u25a0\u30c6\u30c3\u30af\u30b8\u30e0\u6771\u4eac\u672c\u6821<\/p>\n\n\n\n<p>\u300c\u6b66\u7530\u587e\u300d\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7248\u3068\u3044\u3048\u3070\u300c\u30c6\u30c3\u30af\u30b8\u30e0\u300d\u3002<br>\u8b1b\u7fa9\u52d5\u753b\u306a\u3057\u3001\u6559\u79d1\u66f8\u306a\u3057\u3002\u300c\u9032\u6357\u7ba1\u7406\u3068\u30b3\u30fc\u30c1\u30f3\u30b0\u300d\u3067\u52b9\u7387\u5b66\u7fd2\u3002<br>\u3088\u308a\u65e9\u304f\u3001\u3088\u308a\u5b89\u304f\u3001\u3057\u304b\u3082\u5bfe\u9762\u578b\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"8fqFcAPdto\"><a href=\"https:\/\/techgym.jp\/tokyo\/tokyo_honko\/\">\u30c6\u30c3\u30af\u30b8\u30e0\u6771\u4eac\u672c\u6821<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u30c6\u30c3\u30af\u30b8\u30e0\u6771\u4eac\u672c\u6821&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/tokyo\/tokyo_honko\/embed\/#?secret=Q3AwwqBNdr#?secret=8fqFcAPdto\" data-secret=\"8fqFcAPdto\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\uff1c\u77ed\u671f\u8b1b\u7fd2\uff1e5\u65e5\u30675\u4e07\u5186\u306e\u300cPython\u30df\u30cb\u30ad\u30e3\u30f3\u30d7\u300d\u958b\u50ac\u4e2d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"OFUQOUvlur\"><a href=\"https:\/\/techgym.jp\/event\/nagatacho_camp\/\">\u72ec\u5b66\u3082\u30aa\u30f3\u30e9\u30a4\u30f3\u3082\u7121\u7406\u3060\u304b\u3089\u3001\u6709\u7d66\u3068\u3063\u3066\u300cPython\u30df\u30cb\u30ad\u30e3\u30f3\u30d7\u300d\u3078\u30105\u65e5\u9593\u30675\u4e07\u5186\u3011<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u72ec\u5b66\u3082\u30aa\u30f3\u30e9\u30a4\u30f3\u3082\u7121\u7406\u3060\u304b\u3089\u3001\u6709\u7d66\u3068\u3063\u3066\u300cPython\u30df\u30cb\u30ad\u30e3\u30f3\u30d7\u300d\u3078\u30105\u65e5\u9593\u30675\u4e07\u5186\u3011&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/event\/nagatacho_camp\/embed\/#?secret=YL2owgrPHJ#?secret=OFUQOUvlur\" data-secret=\"OFUQOUvlur\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\uff1c\u67081\u958b\u50ac\uff1e\u653e\u9001\u4f5c\u5bb6\u306b\u3088\u308b\u6620\u50cf\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u990a\u6210\u8b1b\u5ea7<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Gmn28ZjE0B\"><a href=\"https:\/\/techgym.jp\/event\/video_director\/\">\u73fe\u5f79\u653e\u9001\u4f5c\u5bb6\u304c\u6559\u3048\u308b\u52d5\u753b\u8b1b\u5ea7\uff01\u300e\uff24\uff2f\uff27\uff21\u300f<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u73fe\u5f79\u653e\u9001\u4f5c\u5bb6\u304c\u6559\u3048\u308b\u52d5\u753b\u8b1b\u5ea7\uff01\u300e\uff24\uff2f\uff27\uff21\u300f&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/event\/video_director\/embed\/#?secret=TD5ITTEHQ1#?secret=Gmn28ZjE0B\" data-secret=\"Gmn28ZjE0B\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\uff1c\u30aa\u30f3\u30e9\u30a4\u30f3\u7121\u6599\uff1e\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bPython\u7206\u901f\u8b1b\u5ea7<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"1GuIBypejW\"><a href=\"https:\/\/techgym.jp\/tokyo_python\/\">\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bPython\u7206\u901f\u8b1b\u5ea7\uff08\u7406\u7cfb\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u521d\u5fc3\u8005\u5411\u3051\uff09<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bPython\u7206\u901f\u8b1b\u5ea7\uff08\u7406\u7cfb\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u521d\u5fc3\u8005\u5411\u3051\uff09&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/tokyo_python\/embed\/#?secret=2VCUTSnNJw#?secret=1GuIBypejW\" data-secret=\"1GuIBypejW\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Python\u3067\u8f9e\u66f8\u64cd\u4f5c\u3092\u884c\u3046\u969b\u3001\u300c\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304b\u3089\u5024\u3092\u8ffd\u52a0\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u5834\u9762\u306f\u983b\u7e41\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u305d\u3093\u306a\u3068\u304d\u306b\u4fbf\u5229\u306a\u306e\u304csetdefault\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001setdefault\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":42501,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-43919","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column"],"views":69,"jetpack_featured_media_url":"\/wp-content\/uploads\/2025\/07\/f3403acf5c65aedec0dba821c4c26404.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts\/43919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/comments?post=43919"}],"version-history":[{"count":0,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts\/43919\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/media\/42501"}],"wp:attachment":[{"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/media?parent=43919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/categories?post=43919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/tags?post=43919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}