{"id":43456,"date":"2025-07-31T15:06:54","date_gmt":"2025-07-31T06:06:54","guid":{"rendered":"https:\/\/techgym.jp\/?p=43456"},"modified":"2025-07-31T15:06:58","modified_gmt":"2025-07-31T06:06:58","slug":"python-debug","status":"publish","type":"post","link":"https:\/\/techgym.jp\/column\/python-debug\/","title":{"rendered":"Python\u30c7\u30d0\u30c3\u30b0\u6280\u8853\u5b8c\u5168\u30ac\u30a4\u30c9\uff01\u52b9\u7387\u7684\u306a\u30d0\u30b0\u4fee\u6b63\u306e\u65b9\u6cd5\u30102025\u5e74\u6700\u65b0\u7248\u3011"},"content":{"rendered":"\n<p>\u00a0<\/p>\n<p>Python\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u3066\u3001\u30d0\u30b0\u304c\u898b\u3064\u304b\u3089\u305a\u56f0\u3063\u305f\u7d4c\u9a13\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u52b9\u7387\u7684\u306a\u30c7\u30d0\u30c3\u30b0\u6280\u8853\u3092\u8eab\u306b\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u6642\u9593\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3057\u3001\u3088\u308a\u54c1\u8cea\u306e\u9ad8\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Python\u521d\u5fc3\u8005\u304b\u3089\u4e0a\u7d1a\u8005\u307e\u3067\u4f7f\u3048\u308b\u5b9f\u8df5\u7684\u306a\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5\u3092\u3001\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>Python\u30c7\u30d0\u30c3\u30b0\u3068\u306f\uff1f\u306a\u305c\u91cd\u8981\u306a\u306e\u304b<\/h2>\n<p>\u30c7\u30d0\u30c3\u30b0\u3068\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d0\u30b0\uff08\u4e0d\u5177\u5408\uff09\u3092\u767a\u898b\u3057\u3001\u4fee\u6b63\u3059\u308b\u4f5c\u696d\u3067\u3059\u3002\u52b9\u7387\u7684\u306a\u30c7\u30d0\u30c3\u30b0\u30b9\u30ad\u30eb\u306f\u3001\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u5fc5\u9808\u306e\u6280\u8853\u3067\u3059\u3002<\/p>\n<h3>\u30c7\u30d0\u30c3\u30b0\u306e\u91cd\u8981\u6027<\/h3>\n<ul>\n<li><strong>\u958b\u767a\u52b9\u7387\u5411\u4e0a<\/strong>: \u30d0\u30b0\u3092\u7d20\u65e9\u304f\u7279\u5b9a\u30fb\u4fee\u6b63<\/li>\n<li><strong>\u30b3\u30fc\u30c9\u54c1\u8cea\u5411\u4e0a<\/strong>: \u554f\u984c\u306e\u6839\u672c\u539f\u56e0\u3092\u7406\u89e3<\/li>\n<li><strong>\u5b66\u7fd2\u52b9\u679c<\/strong>: \u30a8\u30e9\u30fc\u304b\u3089\u591a\u304f\u3092\u5b66\u3079\u308b<\/li>\n<li><strong>\u4fdd\u5b88\u6027\u5411\u4e0a<\/strong>: \u5c06\u6765\u7684\u306a\u30d0\u30b0\u4e88\u9632\u306b\u3082\u5f79\u7acb\u3064<\/li>\n<\/ul>\n<h2>\u3010\u57fa\u672c\u7de8\u3011print\u6587\u306b\u3088\u308b\u30c7\u30d0\u30c3\u30b0<\/h2>\n<p>\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u52b9\u679c\u7684\u306a\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>1. \u57fa\u672c\u7684\u306aprint\u6587\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">def calculate_average(numbers):\n    print(f\"\u5165\u529b\u30c7\u30fc\u30bf: {numbers}\")  # \u5165\u529b\u5024\u306e\u78ba\u8a8d\n    \n    total = sum(numbers)\n    print(f\"\u5408\u8a08: {total}\")  # \u4e2d\u9593\u7d50\u679c\u306e\u78ba\u8a8d\n    \n    average = total \/ len(numbers)\n    print(f\"\u5e73\u5747: {average}\")  # \u6700\u7d42\u7d50\u679c\u306e\u78ba\u8a8d\n    \n    return average\n\n# \u30c6\u30b9\u30c8\u5b9f\u884c\nresult = calculate_average([1, 2, 3, 4, 5])\n<\/code><\/pre>\n<h3>2. \u6761\u4ef6\u5206\u5c90\u306e\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">def grade_calculator(score):\n    print(f\"\u30b9\u30b3\u30a2: {score}\")\n    \n    if score &gt;= 90:\n        grade = \"A\"\n        print(\"A\u5224\u5b9a\u306e\u30d1\u30b9\u3092\u901a\u904e\")\n    elif score &gt;= 80:\n        grade = \"B\"\n        print(\"B\u5224\u5b9a\u306e\u30d1\u30b9\u3092\u901a\u904e\")\n    else:\n        grade = \"C\"\n        print(\"C\u5224\u5b9a\u306e\u30d1\u30b9\u3092\u901a\u904e\")\n    \n    return grade\n<\/code><\/pre>\n<h3>3. \u30eb\u30fc\u30d7\u51e6\u7406\u306e\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">def find_max(numbers):\n    max_val = numbers[0]\n    \n    for i, num in enumerate(numbers):\n        print(f\"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9{i}: {num}, \u73fe\u5728\u306emax: {max_val}\")\n        if num &gt; max_val:\n            max_val = num\n            print(f\"\u6700\u5927\u5024\u3092\u66f4\u65b0: {max_val}\")\n    \n    return max_val\n<\/code><\/pre>\n<h2>\u3010\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u7de8\u3011logging\u3092\u4f7f\u3063\u305f\u9ad8\u5ea6\u306a\u30c7\u30d0\u30c3\u30b0<\/h2>\n<p>print\u6587\u306e\u4ee3\u308f\u308a\u306blogging\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u3088\u308a\u67d4\u8edf\u306a\u30c7\u30d0\u30c3\u30b0\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>1. \u57fa\u672c\u7684\u306alogging\u8a2d\u5b9a<\/h3>\n<pre><code class=\"language-python\">import logging\n\n# \u30ed\u30b0\u8a2d\u5b9a\nlogging.basicConfig(\n    level=logging.DEBUG,\n    format='%(asctime)s - %(levelname)s - %(message)s'\n)\n\ndef process_data(data):\n    logging.debug(f\"\u51e6\u7406\u958b\u59cb: {data}\")\n    \n    try:\n        result = data * 2\n        logging.info(f\"\u51e6\u7406\u6210\u529f: {result}\")\n        return result\n    except Exception as e:\n        logging.error(f\"\u51e6\u7406\u30a8\u30e9\u30fc: {e}\")\n        raise\n<\/code><\/pre>\n<h3>2. \u30ec\u30d9\u30eb\u5225\u30ed\u30b0\u51fa\u529b<\/h3>\n<pre><code class=\"language-python\">import logging\n\nlogger = logging.getLogger(__name__)\n\ndef user_login(username, password):\n    logger.debug(f\"\u30ed\u30b0\u30a4\u30f3\u8a66\u884c: {username}\")\n    \n    if not username:\n        logger.warning(\"\u30e6\u30fc\u30b6\u30fc\u540d\u304c\u7a7a\u3067\u3059\")\n        return False\n    \n    if authenticate(username, password):\n        logger.info(f\"\u30ed\u30b0\u30a4\u30f3\u6210\u529f: {username}\")\n        return True\n    else:\n        logger.error(f\"\u30ed\u30b0\u30a4\u30f3\u5931\u6557: {username}\")\n        return False\n<\/code><\/pre>\n<h2>\u3010\u30c7\u30d0\u30c3\u30ac\u30fc\u7de8\u3011pdb\u306b\u3088\u308b\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c<\/h2>\n<p>Python\u306e\u6a19\u6e96\u30c7\u30d0\u30c3\u30ac\u30fcpdb\u3092\u4f7f\u3046\u3068\u3001\u30b3\u30fc\u30c9\u30921\u884c\u305a\u3064\u5b9f\u884c\u3057\u3066\u8a73\u7d30\u306b\u8abf\u67fb\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>1. pdb\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h3>\n<pre><code class=\"language-python\">import pdb\n\ndef buggy_function(x, y):\n    pdb.set_trace()  # \u3053\u3053\u3067\u30c7\u30d0\u30c3\u30ac\u30fc\u304c\u8d77\u52d5\n    \n    result = x + y\n    if result &gt; 10:\n        result = result * 2\n    \n    return result\n\n# \u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\nvalue = buggy_function(5, 8)\n<\/code><\/pre>\n<h3>2. \u6761\u4ef6\u4ed8\u304d\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8<\/h3>\n<pre><code class=\"language-python\">import pdb\n\ndef process_list(items):\n    for i, item in enumerate(items):\n        if i == 3:  # \u7279\u5b9a\u306e\u6761\u4ef6\u3067\u30c7\u30d0\u30c3\u30ac\u30fc\u8d77\u52d5\n            pdb.set_trace()\n        \n        processed = item.upper()\n        print(f\"\u51e6\u7406\u6e08\u307f: {processed}\")\n<\/code><\/pre>\n<h3>pdb\u306e\u4e3b\u8981\u30b3\u30de\u30f3\u30c9<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u30b3\u30de\u30f3\u30c9<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>n<\/code> (next)<\/td>\n<td>\u6b21\u306e\u884c\u3092\u5b9f\u884c<\/td>\n<\/tr>\n<tr>\n<td><code>s<\/code> (step)<\/td>\n<td>\u95a2\u6570\u5185\u90e8\u306b\u30b9\u30c6\u30c3\u30d7\u30a4\u30f3<\/td>\n<\/tr>\n<tr>\n<td><code>c<\/code> (continue)<\/td>\n<td>\u5b9f\u884c\u3092\u7d99\u7d9a<\/td>\n<\/tr>\n<tr>\n<td><code>l<\/code> (list)<\/td>\n<td>\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u3092\u8868\u793a<\/td>\n<\/tr>\n<tr>\n<td><code>p &lt;\u5909\u6570\u540d&gt;<\/code><\/td>\n<td>\u5909\u6570\u306e\u5024\u3092\u8868\u793a<\/td>\n<\/tr>\n<tr>\n<td><code>pp &lt;\u5909\u6570\u540d&gt;<\/code><\/td>\n<td>\u5909\u6570\u3092\u6574\u5f62\u3057\u3066\u8868\u793a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u3010IDE\u30fb\u30a8\u30c7\u30a3\u30bf\u7de8\u3011Visual Studio Code\u3067\u306e\u30c7\u30d0\u30c3\u30b0<\/h2>\n<p>Visual Studio Code\u306b\u306f\u5f37\u529b\u306a\u30c7\u30d0\u30c3\u30b0\u6a5f\u80fd\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>1. launch.json\u306e\u8a2d\u5b9a\u4f8b<\/h3>\n<pre><code class=\"language-json\">{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"name\": \"Python: Current File\",\n            \"type\": \"python\",\n            \"request\": \"launch\",\n            \"program\": \"${file}\",\n            \"console\": \"integratedTerminal\",\n            \"justMyCode\": true\n        }\n    ]\n}\n<\/code><\/pre>\n<h3>2. \u30c7\u30d0\u30c3\u30b0\u6642\u306e\u5909\u6570\u76e3\u8996<\/h3>\n<pre><code class=\"language-python\">def complex_calculation(data):\n    # \u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u5909\u6570\u3092\u76e3\u8996\n    processed_data = []\n    \n    for item in data:\n        # \u3053\u306e\u6642\u70b9\u3067item, processed_data\u3092\u76e3\u8996\n        transformed = item ** 2 + 10\n        processed_data.append(transformed)\n    \n    return processed_data\n<\/code><\/pre>\n<h2>\u3010\u4f8b\u5916\u51e6\u7406\u7de8\u3011try-except\u6587\u306b\u3088\u308b\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h2>\n<p>\u9069\u5207\u306a\u4f8b\u5916\u51e6\u7406\u306b\u3088\u308a\u3001\u30a8\u30e9\u30fc\u306e\u8a73\u7d30\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>1. \u57fa\u672c\u7684\u306a\u4f8b\u5916\u51e6\u7406<\/h3>\n<pre><code class=\"language-python\">import traceback\n\ndef safe_division(a, b):\n    try:\n        result = a \/ b\n        return result\n    except ZeroDivisionError as e:\n        print(f\"\u30bc\u30ed\u9664\u7b97\u30a8\u30e9\u30fc: {e}\")\n        return None\n    except Exception as e:\n        print(f\"\u4e88\u671f\u3057\u306a\u3044\u30a8\u30e9\u30fc: {e}\")\n        traceback.print_exc()  # \u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3092\u8868\u793a\n        return None\n<\/code><\/pre>\n<h3>2. \u8a73\u7d30\u306a\u30a8\u30e9\u30fc\u60c5\u5831\u306e\u53d6\u5f97<\/h3>\n<pre><code class=\"language-python\">import sys\nimport traceback\n\ndef detailed_error_handling():\n    try:\n        risky_operation()\n    except Exception as e:\n        exc_type, exc_value, exc_traceback = sys.exc_info()\n        \n        print(f\"\u30a8\u30e9\u30fc\u30bf\u30a4\u30d7: {exc_type.__name__}\")\n        print(f\"\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8: {exc_value}\")\n        print(f\"\u767a\u751f\u5834\u6240: {exc_traceback.tb_frame.f_code.co_filename}\")\n        print(f\"\u884c\u756a\u53f7: {exc_traceback.tb_lineno}\")\n        \n        # \u5b8c\u5168\u306a\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\n        traceback.print_exc()\n<\/code><\/pre>\n<h2>\u3010\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u7de8\u3011\u5b9f\u884c\u6642\u9593\u3068\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u30c7\u30d0\u30c3\u30b0<\/h2>\n<h3>1. \u5b9f\u884c\u6642\u9593\u306e\u6e2c\u5b9a<\/h3>\n<pre><code class=\"language-python\">import time\nimport functools\n\ndef timing_decorator(func):\n    @functools.wraps(func)\n    def wrapper(*args, **kwargs):\n        start_time = time.time()\n        result = func(*args, **kwargs)\n        end_time = time.time()\n        print(f\"{func.__name__}: {end_time - start_time:.4f}\u79d2\")\n        return result\n    return wrapper\n\n@timing_decorator\ndef slow_function():\n    time.sleep(0.1)\n    return \"\u5b8c\u4e86\"\n<\/code><\/pre>\n<h3>2. \u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0<\/h3>\n<pre><code class=\"language-python\">import cProfile\nimport io\nimport pstats\n\ndef profile_function(func):\n    pr = cProfile.Profile()\n    pr.enable()\n    \n    result = func()\n    \n    pr.disable()\n    s = io.StringIO()\n    ps = pstats.Stats(pr, stream=s)\n    ps.sort_stats('cumulative')\n    ps.print_stats()\n    print(s.getvalue())\n    \n    return result\n\n# \u4f7f\u7528\u4f8b\ndef expensive_operation():\n    return sum(i**2 for i in range(10000))\n\nprofile_function(expensive_operation)\n<\/code><\/pre>\n<h3>3. \u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u76e3\u8996<\/h3>\n<pre><code class=\"language-python\">import psutil\nimport os\n\ndef memory_usage():\n    process = psutil.Process(os.getpid())\n    memory_info = process.memory_info()\n    print(f\"RSS: {memory_info.rss \/ 1024 \/ 1024:.2f} MB\")\n    print(f\"VMS: {memory_info.vms \/ 1024 \/ 1024:.2f} MB\")\n\ndef memory_heavy_function():\n    memory_usage()  # \u51e6\u7406\u524d\n    \n    large_list = [i for i in range(1000000)]\n    \n    memory_usage()  # \u51e6\u7406\u5f8c\n    \n    return len(large_list)\n<\/code><\/pre>\n<h2>\u3010\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30c4\u30fc\u30eb\u7de8\u3011\u9ad8\u5ea6\u306a\u30c7\u30d0\u30c3\u30b0\u30c4\u30fc\u30eb<\/h2>\n<h3>1. ipdb\u306b\u3088\u308b\u5f37\u5316\u30c7\u30d0\u30c3\u30ac\u30fc<\/h3>\n<pre><code class=\"language-bash\">pip install ipdb\n<\/code><\/pre>\n<pre><code class=\"language-python\">import ipdb\n\ndef enhanced_debug():\n    data = [1, 2, 3, 4, 5]\n    ipdb.set_trace()  # IPython\u30d9\u30fc\u30b9\u306e\u9ad8\u6a5f\u80fd\u30c7\u30d0\u30c3\u30ac\u30fc\n    \n    result = [x * 2 for x in data]\n    return result\n<\/code><\/pre>\n<h3>2. line_profiler\u306b\u3088\u308b\u884c\u5225\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0<\/h3>\n<pre><code class=\"language-bash\">pip install line_profiler\n<\/code><\/pre>\n<pre><code class=\"language-python\">@profile  # kernprof -l -v script.py \u3067\u5b9f\u884c\ndef line_by_line_profiling():\n    total = 0\n    for i in range(1000):\n        total += i ** 2\n    \n    result = total \/ 1000\n    return result\n<\/code><\/pre>\n<h3>3. memory_profiler\u306b\u3088\u308b\u30e1\u30e2\u30ea\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0<\/h3>\n<pre><code class=\"language-bash\">pip install memory_profiler\n<\/code><\/pre>\n<pre><code class=\"language-python\">from memory_profiler import profile\n\n@profile\ndef memory_profiling_example():\n    # \u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u304c\u884c\u3054\u3068\u306b\u8868\u793a\u3055\u308c\u308b\n    big_list = [i for i in range(100000)]\n    big_dict = {i: i**2 for i in range(50000)}\n    \n    del big_list  # \u30e1\u30e2\u30ea\u89e3\u653e\n    return len(big_dict)\n<\/code><\/pre>\n<h2>\u3010\u5b9f\u8df5\u7de8\u3011\u3088\u304f\u3042\u308b\u30d0\u30b0\u30d1\u30bf\u30fc\u30f3\u3068\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5<\/h2>\n<h3>1. \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30a8\u30e9\u30fc\u306e\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">def safe_list_access(items, index):\n    print(f\"\u30ea\u30b9\u30c8\u9577: {len(items)}, \u30a2\u30af\u30bb\u30b9\u4e88\u5b9a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9: {index}\")\n    \n    if index &lt; 0 or index &gt;= len(items):\n        print(f\"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30a8\u30e9\u30fc: {index} \u306f\u7bc4\u56f2\u5916\")\n        return None\n    \n    return items[index]\n\n# \u30c7\u30d0\u30c3\u30b0\u4f8b\ndata = [1, 2, 3]\nresult = safe_list_access(data, 5)  # \u30a8\u30e9\u30fc\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b\n<\/code><\/pre>\n<h3>2. \u578b\u30a8\u30e9\u30fc\u306e\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">def type_safe_operation(a, b):\n    print(f\"a: {a} (\u578b: {type(a)})\")\n    print(f\"b: {b} (\u578b: {type(b)})\")\n    \n    if not isinstance(a, (int, float)) or not isinstance(b, (int, float)):\n        print(\"\u578b\u30a8\u30e9\u30fc: \u6570\u5024\u4ee5\u5916\u304c\u6e21\u3055\u308c\u307e\u3057\u305f\")\n        return None\n    \n    return a + b\n\n# \u30c7\u30d0\u30c3\u30b0\u4f8b\nresult = type_safe_operation(\"5\", 3)  # \u578b\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b\n<\/code><\/pre>\n<h3>3. \u7121\u9650\u30eb\u30fc\u30d7\u306e\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">def debug_loop():\n    counter = 0\n    max_iterations = 1000  # \u5b89\u5168\u5f01\n    \n    while True:\n        counter += 1\n        print(f\"\u30eb\u30fc\u30d7\u56de\u6570: {counter}\")\n        \n        if counter &gt; max_iterations:\n            print(\"\u6700\u5927\u53cd\u5fa9\u56de\u6570\u306b\u9054\u3057\u307e\u3057\u305f\u3002\u7121\u9650\u30eb\u30fc\u30d7\u306e\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\")\n            break\n        \n        # \u672c\u6765\u306e\u30eb\u30fc\u30d7\u6761\u4ef6\n        if some_condition():\n            break\n    \n    return counter\n<\/code><\/pre>\n<h2>\u3010Web\u958b\u767a\u7de8\u3011Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d0\u30c3\u30b0<\/h2>\n<h3>1. Flask\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">from flask import Flask, request\nimport logging\n\napp = Flask(__name__)\napp.logger.setLevel(logging.DEBUG)\n\n@app.route('\/api\/user\/&lt;int:user_id&gt;')\ndef get_user(user_id):\n    app.logger.debug(f\"\u30e6\u30fc\u30b6\u30fc\u53d6\u5f97\u30ea\u30af\u30a8\u30b9\u30c8: {user_id}\")\n    app.logger.debug(f\"\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc: {dict(request.headers)}\")\n    \n    try:\n        user = User.get(user_id)\n        if not user:\n            app.logger.warning(f\"\u30e6\u30fc\u30b6\u30fc\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093: {user_id}\")\n            return {\"error\": \"User not found\"}, 404\n        \n        app.logger.info(f\"\u30e6\u30fc\u30b6\u30fc\u53d6\u5f97\u6210\u529f: {user.name}\")\n        return {\"id\": user.id, \"name\": user.name}\n    \n    except Exception as e:\n        app.logger.error(f\"\u30e6\u30fc\u30b6\u30fc\u53d6\u5f97\u30a8\u30e9\u30fc: {e}\")\n        return {\"error\": \"Internal server error\"}, 500\n\nif __name__ == '__main__':\n    app.run(debug=True)  # \u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u5b9f\u884c\n<\/code><\/pre>\n<h3>2. Django\u8a2d\u5b9a\u306e\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\"># settings.py\nimport logging\n\nDEBUG = True\n\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'formatters': {\n        'verbose': {\n            'format': '{levelname} {asctime} {module} {message}',\n            'style': '{',\n        },\n    },\n    'handlers': {\n        'console': {\n            'class': 'logging.StreamHandler',\n            'formatter': 'verbose',\n        },\n    },\n    'loggers': {\n        'django': {\n            'handlers': ['console'],\n            'level': 'DEBUG',\n        },\n    },\n}\n<\/code><\/pre>\n<h2>\u3010\u975e\u540c\u671f\u51e6\u7406\u7de8\u3011async\/await\u306e\u30c7\u30d0\u30c3\u30b0<\/h2>\n<h3>1. \u975e\u540c\u671f\u95a2\u6570\u306e\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">import asyncio\nimport logging\n\nlogging.basicConfig(level=logging.DEBUG)\nlogger = logging.getLogger(__name__)\n\nasync def async_operation(data):\n    logger.debug(f\"\u975e\u540c\u671f\u51e6\u7406\u958b\u59cb: {data}\")\n    \n    try:\n        await asyncio.sleep(0.1)  # \u975e\u540c\u671f\u51e6\u7406\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\n        result = data * 2\n        logger.debug(f\"\u975e\u540c\u671f\u51e6\u7406\u5b8c\u4e86: {result}\")\n        return result\n    \n    except Exception as e:\n        logger.error(f\"\u975e\u540c\u671f\u51e6\u7406\u30a8\u30e9\u30fc: {e}\")\n        raise\n\nasync def main():\n    tasks = [async_operation(i) for i in range(5)]\n    results = await asyncio.gather(*tasks)\n    logger.info(f\"\u5168\u51e6\u7406\u5b8c\u4e86: {results}\")\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n<\/code><\/pre>\n<h2>\u3010\u30c6\u30b9\u30c8\u99c6\u52d5\u30c7\u30d0\u30c3\u30b0\u7de8\u3011\u30c6\u30b9\u30c8\u3092\u4f7f\u3063\u305f\u30c7\u30d0\u30c3\u30b0<\/h2>\n<h3>1. \u4eee\u8aac\u691c\u8a3c\u578b\u30c7\u30d0\u30c3\u30b0<\/h3>\n<pre><code class=\"language-python\">import unittest\n\ndef problematic_function(x):\n    # \u30d0\u30b0\u304c\u3042\u308b\u95a2\u6570\n    if x &gt; 10:\n        return x * 2\n    elif x &gt; 5:\n        return x + 5\n    else:\n        return x - 1\n\nclass TestProblematicFunction(unittest.TestCase):\n    def test_hypothesis_1(self):\n        # \u4eee\u8aac1: x &gt; 10 \u306e\u5834\u5408\u306e\u51e6\u7406\n        result = problematic_function(15)\n        self.assertEqual(result, 30)\n    \n    def test_hypothesis_2(self):\n        # \u4eee\u8aac2: 5 &lt; x &lt;= 10 \u306e\u5834\u5408\u306e\u51e6\u7406\n        result = problematic_function(8)\n        self.assertEqual(result, 13)\n    \n    def test_hypothesis_3(self):\n        # \u4eee\u8aac3: x &lt;= 5 \u306e\u5834\u5408\u306e\u51e6\u7406\n        result = problematic_function(3)\n        self.assertEqual(result, 2)\n\n# \u30c6\u30b9\u30c8\u5b9f\u884c\u3067\u30d0\u30b0\u3092\u7279\u5b9a\n<\/code><\/pre>\n<h3>2. \u30d0\u30b0\u518d\u73fe\u30c6\u30b9\u30c8<\/h3>\n<pre><code class=\"language-python\">def test_bug_reproduction():\n    # \u30d0\u30b0\u304c\u767a\u751f\u3059\u308b\u6761\u4ef6\u3092\u518d\u73fe\n    input_data = {\"name\": None, \"age\": 25}\n    \n    with unittest.TestCase().assertRaises(AttributeError):\n        result = process_user_data(input_data)\n    \n    # \u30d0\u30b0\u4fee\u6b63\u5f8c\u306e\u30c6\u30b9\u30c8\n    fixed_result = process_user_data_fixed(input_data)\n    assert fixed_result is not None\n<\/code><\/pre>\n<h2>\u30c7\u30d0\u30c3\u30b0\u52b9\u7387\u5316\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h2>\n<h3>1. \u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u306e\u69cb\u9020\u5316<\/h3>\n<pre><code class=\"language-python\">import json\nimport logging\n\nclass StructuredLogger:\n    def __init__(self, name):\n        self.logger = logging.getLogger(name)\n    \n    def debug_dict(self, message, data):\n        log_entry = {\n            \"message\": message,\n            \"data\": data,\n            \"timestamp\": time.time()\n        }\n        self.logger.debug(json.dumps(log_entry, indent=2))\n\nlogger = StructuredLogger(__name__)\n\ndef process_with_structured_logging(user_data):\n    logger.debug_dict(\"\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u51e6\u7406\u958b\u59cb\", {\n        \"user_id\": user_data.get(\"id\"),\n        \"data_keys\": list(user_data.keys())\n    })\n<\/code><\/pre>\n<h3>2. \u518d\u73fe\u53ef\u80fd\u306a\u30c7\u30d0\u30c3\u30b0\u74b0\u5883<\/h3>\n<pre><code class=\"language-python\">import random\nimport os\n\ndef reproducible_debug():\n    # \u30b7\u30fc\u30c9\u5024\u3092\u56fa\u5b9a\u3057\u3066\u518d\u73fe\u53ef\u80fd\u306b\u3059\u308b\n    seed = os.getenv('DEBUG_SEED', 42)\n    random.seed(seed)\n    \n    print(f\"\u30c7\u30d0\u30c3\u30b0\u30b7\u30fc\u30c9: {seed}\")\n    \n    # \u30e9\u30f3\u30c0\u30e0\u306a\u51e6\u7406\n    random_values = [random.randint(1, 100) for _ in range(5)]\n    print(f\"\u751f\u6210\u3055\u308c\u305f\u5024: {random_values}\")\n    \n    return random_values\n<\/code><\/pre>\n<h3>3. \u30c7\u30d0\u30c3\u30b0\u7528\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<\/h3>\n<pre><code class=\"language-python\">import time\nfrom contextlib import contextmanager\n\n@contextmanager\ndef debug_context(operation_name):\n    print(f\"=== {operation_name} \u958b\u59cb ===\")\n    start_time = time.time()\n    \n    try:\n        yield\n    except Exception as e:\n        print(f\"\u30a8\u30e9\u30fc\u767a\u751f: {e}\")\n        raise\n    finally:\n        end_time = time.time()\n        print(f\"=== {operation_name} \u5b8c\u4e86 ({end_time - start_time:.3f}\u79d2) ===\")\n\n# \u4f7f\u7528\u4f8b\ndef main():\n    with debug_context(\"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u51e6\u7406\"):\n        # \u30c7\u30d0\u30c3\u30b0\u5bfe\u8c61\u306e\u51e6\u7406\n        process_database_query()\n    \n    with debug_context(\"API\u547c\u3073\u51fa\u3057\"):\n        call_external_api()\n<\/code><\/pre>\n<h2>\u3010\u30c1\u30fc\u30e0\u30c7\u30d0\u30c3\u30b0\u7de8\u3011\u30c1\u30fc\u30e0\u958b\u767a\u3067\u306e\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5<\/h2>\n<h3>1. \u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u306e\u5171\u6709<\/h3>\n<pre><code class=\"language-python\">import hashlib\nimport json\n\ndef create_debug_report(error, context_data):\n    \"\"\"\u30c7\u30d0\u30c3\u30b0\u30ec\u30dd\u30fc\u30c8\u3092\u751f\u6210\"\"\"\n    report = {\n        \"error_type\": type(error).__name__,\n        \"error_message\": str(error),\n        \"context\": context_data,\n        \"timestamp\": time.time(),\n        \"python_version\": sys.version,\n        \"platform\": platform.platform()\n    }\n    \n    # \u30e6\u30cb\u30fc\u30af\u306aID\u751f\u6210\n    report_id = hashlib.md5(json.dumps(report, sort_keys=True).encode()).hexdigest()[:8]\n    report[\"report_id\"] = report_id\n    \n    return report\n\n# \u4f7f\u7528\u4f8b\ntry:\n    risky_operation()\nexcept Exception as e:\n    debug_report = create_debug_report(e, {\"user_id\": 123, \"operation\": \"data_processing\"})\n    logging.error(f\"\u30c7\u30d0\u30c3\u30b0\u30ec\u30dd\u30fc\u30c8: {json.dumps(debug_report, indent=2)}\")\n<\/code><\/pre>\n<h3>2. \u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0\u306e\u8a2d\u5b9a<\/h3>\n<pre><code class=\"language-python\"># \u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u8a2d\u5b9a\nimport pdb\nimport sys\n\ndef remote_debug():\n    if '--debug' in sys.argv:\n        import pdb\n        pdb.set_trace()\n    \n    # \u901a\u5e38\u306e\u51e6\u7406\n    main_process()\n\nif __name__ == \"__main__\":\n    remote_debug()\n<\/code><\/pre>\n<h2>\u307e\u3068\u3081\uff1a\u52b9\u7387\u7684\u306aPython\u30c7\u30d0\u30c3\u30b0\u30b9\u30ad\u30eb\u306e\u7fd2\u5f97<\/h2>\n<p>Python\u30c7\u30d0\u30c3\u30b0\u6280\u8853\u306f\u3001\u958b\u767a\u8005\u306e\u751f\u7523\u6027\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u91cd\u8981\u306a\u30b9\u30ad\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u57fa\u672c\u7684\u306a\u624b\u6cd5\u304b\u3089\u9ad8\u5ea6\u306a\u30c6\u30af\u30cb\u30c3\u30af\u307e\u3067\u3092\u6bb5\u968e\u7684\u306b\u7fd2\u5f97\u3059\u308b\u3053\u3068\u3067\u3001\u3069\u3093\u306a\u30d0\u30b0\u3067\u3082\u52b9\u7387\u7684\u306b\u89e3\u6c7a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>\u6bb5\u968e\u7684\u30a2\u30d7\u30ed\u30fc\u30c1<\/strong>: print\u6587\u304b\u3089\u59cb\u3081\u3066\u5f90\u3005\u306b\u9ad8\u5ea6\u306a\u624b\u6cd5\u3092\u5c0e\u5165<\/li>\n<li><strong>\u9069\u5207\u306a\u30c4\u30fc\u30eb\u9078\u629e<\/strong>: \u554f\u984c\u306e\u6027\u8cea\u306b\u5fdc\u3058\u3066\u6700\u9069\u306a\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5\u3092\u9078\u629e<\/li>\n<li><strong>\u518d\u73fe\u6027\u306e\u78ba\u4fdd<\/strong>: \u30d0\u30b0\u3092\u78ba\u5b9f\u306b\u518d\u73fe\u3067\u304d\u308b\u74b0\u5883\u3092\u69cb\u7bc9<\/li>\n<li><strong>\u30c1\u30fc\u30e0\u5171\u6709<\/strong>: \u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u69cb\u9020\u5316\u3057\u3066\u30c1\u30fc\u30e0\u3067\u5171\u6709<\/li>\n<\/ul>\n<p>\u307e\u305a\u306f\u57fa\u672c\u7684\u306aprint\u6587\u3084logging\u3092\u4f7f\u3063\u305f\u30c7\u30d0\u30c3\u30b0\u304b\u3089\u59cb\u3081\u3066\u3001\u5f90\u3005\u306bpdb\u3084\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u306a\u3069\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u53d6\u308a\u5165\u308c\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u52b9\u679c\u7684\u306a\u30c7\u30d0\u30c3\u30b0\u30b9\u30ad\u30eb\u306e\u7fd2\u5f97\u306b\u3088\u308a\u3001\u3088\u308a\u81ea\u4fe1\u3092\u6301\u3063\u3066Python\u958b\u767a\u306b\u53d6\u308a\u7d44\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<p><em>\u3053\u306e\u8a18\u4e8b\u304c\u304a\u5f79\u306b\u7acb\u3061\u307e\u3057\u305f\u3089\u3001\u305c\u3072\u30b7\u30a7\u30a2\u3057\u3066\u304f\u3060\u3055\u3044\u3002Python\u30c7\u30d0\u30c3\u30b0\u3084\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u95a2\u3059\u308b\u3054\u8cea\u554f\u304c\u3054\u3056\u3044\u307e\u3057\u305f\u3089\u3001\u304a\u6c17\u8efd\u306b\u30b3\u30e1\u30f3\u30c8\u3067\u304a\u77e5\u3089\u305b\u304f\u3060\u3055\u3044\u3002<\/em><\/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=\"2KNEHxjnmj\"><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=uya4MUEWCv#?secret=2KNEHxjnmj\" data-secret=\"2KNEHxjnmj\" 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=\"xxUDgXTCe3\"><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=NUW0a8XJcD#?secret=xxUDgXTCe3\" data-secret=\"xxUDgXTCe3\" 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=\"FPgeGeW56U\"><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=aKb2z4jfv9#?secret=FPgeGeW56U\" data-secret=\"FPgeGeW56U\" 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=\"axjTsVVBW1\"><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=dz6WMt8r86#?secret=axjTsVVBW1\" data-secret=\"axjTsVVBW1\" 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=\"jQ8vB7pQIy\"><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=vRg0Mu7jJD#?secret=jQ8vB7pQIy\" data-secret=\"jQ8vB7pQIy\" 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=\"ExO8o7CUm0\"><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=mV4Q9KGCxr#?secret=ExO8o7CUm0\" data-secret=\"ExO8o7CUm0\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Python\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u3066\u3001\u30d0\u30b0\u304c\u898b\u3064\u304b\u3089\u305a\u56f0\u3063\u305f\u7d4c\u9a13\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u52b9\u7387\u7684\u306a\u30c7\u30d0\u30c3\u30b0\u6280\u8853\u3092\u8eab\u306b\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u6642\u9593\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3057\u3001\u3088\u308a\u54c1\u8cea\u306e\u9ad8\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Python\u521d [&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-43456","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column"],"views":40,"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\/43456","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=43456"}],"version-history":[{"count":0,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts\/43456\/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=43456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/categories?post=43456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/tags?post=43456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}