{"id":42986,"date":"2025-07-29T11:16:24","date_gmt":"2025-07-29T02:16:24","guid":{"rendered":"https:\/\/techgym.jp\/?p=42986"},"modified":"2025-07-29T11:16:28","modified_gmt":"2025-07-29T02:16:28","slug":"python-input","status":"publish","type":"post","link":"https:\/\/techgym.jp\/column\/python-input\/","title":{"rendered":"Python input()\u95a2\u6570\u306e\u5b8c\u5168\u30ac\u30a4\u30c9\uff1a\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u51e6\u7406\u3092\u5fb9\u5e95\u89e3\u8aac"},"content":{"rendered":"\n<p>\u00a0<\/p>\n<p>Python\u306e<code>input()<\/code>\u95a2\u6570\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306e\u6a19\u6e96\u7684\u306a\u65b9\u6cd5\u3067\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u6b20\u304b\u305b\u306a\u3044\u6a5f\u80fd\u3067\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30c7\u30fc\u30bf\u5165\u529b\u51e6\u7406\u307e\u3067\u5e45\u5e83\u304f\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001Python\u521d\u5fc3\u8005\u304b\u3089\u4e2d\u7d1a\u8005\u307e\u3067\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u3001input()\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u5b9f\u8df5\u7684\u306a\u5fdc\u7528\u4f8b\u307e\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>input()\u95a2\u6570\u3068\u306f<\/h2>\n<p>input()\u95a2\u6570\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u3092\u53d7\u3051\u53d6\u308a\u3001\u5165\u529b\u3055\u308c\u305f\u6587\u5b57\u5217\u3092\u8fd4\u3059Python\u306e\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u3067\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u3092\u4e00\u6642\u505c\u6b62\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304cEnter\u30ad\u30fc\u3092\u62bc\u3059\u307e\u3067\u5165\u529b\u3092\u5f85\u6a5f\u3057\u307e\u3059\u3002<\/p>\n<h3>\u57fa\u672c\u69cb\u6587<\/h3>\n<pre><code class=\"language-python\"># \u57fa\u672c\u5f62\nuser_input = input()\n\n# \u30d7\u30ed\u30f3\u30d7\u30c8\u4ed8\u304d\nuser_input = input(\"\u30e1\u30c3\u30bb\u30fc\u30b8: \")\n<\/code><\/pre>\n<h2>\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<h3>\u5358\u7d14\u306a\u5165\u529b\u53d7\u3051\u53d6\u308a<\/h3>\n<pre><code class=\"language-python\">name = input(\"\u304a\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044: \")\nprint(f\"\u3053\u3093\u306b\u3061\u306f\u3001{name}\u3055\u3093\uff01\")\n<\/code><\/pre>\n<h3>\u6570\u5024\u306e\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">age = int(input(\"\u5e74\u9f62\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044: \"))\nprint(f\"\u3042\u306a\u305f\u306f{age}\u6b73\u3067\u3059\")\n<\/code><\/pre>\n<h3>\u8907\u6570\u306e\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">name = input(\"\u540d\u524d: \")\nemail = input(\"\u30e1\u30fc\u30eb: \")\nprint(f\"{name}\u3055\u3093\u306e\u30e1\u30fc\u30eb: {email}\")\n<\/code><\/pre>\n<h2>\u30c7\u30fc\u30bf\u578b\u306e\u5909\u63db<\/h2>\n<h3>\u6574\u6570\u3078\u306e\u5909\u63db<\/h3>\n<pre><code class=\"language-python\">number = int(input(\"\u6574\u6570\u3092\u5165\u529b: \"))\nresult = number * 2\nprint(f\"2\u500d\u3059\u308b\u3068: {result}\")\n<\/code><\/pre>\n<h3>\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u3078\u306e\u5909\u63db<\/h3>\n<pre><code class=\"language-python\">price = float(input(\"\u4fa1\u683c\u3092\u5165\u529b: \"))\ntax = price * 0.1\nprint(f\"\u7a0e\u984d: {tax:.2f}\u5186\")\n<\/code><\/pre>\n<h3>\u30ea\u30b9\u30c8\u3078\u306e\u5909\u63db<\/h3>\n<pre><code class=\"language-python\">numbers = input(\"\u6570\u5024\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u5165\u529b: \").split()\nint_numbers = [int(x) for x in numbers]\nprint(f\"\u5408\u8a08: {sum(int_numbers)}\")\n<\/code><\/pre>\n<h2>\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h2>\n<h3>ValueError \u306e\u5bfe\u51e6<\/h3>\n<pre><code class=\"language-python\">try:\n    age = int(input(\"\u5e74\u9f62: \"))\n    print(f\"\u5e74\u9f62: {age}\")\nexcept ValueError:\n    print(\"\u6570\u5024\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\")\n<\/code><\/pre>\n<h3>\u5165\u529b\u691c\u8a3c<\/h3>\n<pre><code class=\"language-python\">while True:\n    user_input = input(\"'yes'\u307e\u305f\u306f'no'\u3092\u5165\u529b: \")\n    if user_input.lower() in ['yes', 'no']:\n        break\n    print(\"'yes'\u307e\u305f\u306f'no'\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\")\n<\/code><\/pre>\n<h3>\u7a7a\u5165\u529b\u306e\u51e6\u7406<\/h3>\n<pre><code class=\"language-python\">name = input(\"\u540d\u524d: \").strip()\nif not name:\n    name = \"\u533f\u540d\"\nprint(f\"\u30e6\u30fc\u30b6\u30fc: {name}\")\n<\/code><\/pre>\n<h2>\u5b9f\u8df5\u7684\u306a\u5165\u529b\u51e6\u7406<\/h2>\n<h3>\u30e1\u30cb\u30e5\u30fc\u9078\u629e<\/h3>\n<pre><code class=\"language-python\">print(\"1. \u65b0\u898f\u4f5c\u6210\\n2. \u7de8\u96c6\\n3. \u524a\u9664\")\nchoice = input(\"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044 (1-3): \")\nif choice == \"1\":\n    print(\"\u65b0\u898f\u4f5c\u6210\u3092\u9078\u629e\u3057\u307e\u3057\u305f\")\n<\/code><\/pre>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\uff08\u7c21\u6613\u7248\uff09<\/h3>\n<pre><code class=\"language-python\">import getpass\npassword = getpass.getpass(\"\u30d1\u30b9\u30ef\u30fc\u30c9: \")\nprint(\"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5165\u529b\u3055\u308c\u307e\u3057\u305f\")\n<\/code><\/pre>\n<h3>\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">filename = input(\"\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5165\u529b: \")\nif not filename.endswith('.txt'):\n    filename += '.txt'\nprint(f\"\u4fdd\u5b58\u30d5\u30a1\u30a4\u30eb: {filename}\")\n<\/code><\/pre>\n<h2>\u30c7\u30fc\u30bf\u53ce\u96c6\u3067\u306e\u6d3b\u7528<\/h2>\n<h3>\u9867\u5ba2\u60c5\u5831\u306e\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">customer = {}\ncustomer['name'] = input(\"\u6c0f\u540d: \")\ncustomer['phone'] = input(\"\u96fb\u8a71\u756a\u53f7: \")\ncustomer['email'] = input(\"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9: \")\nprint(f\"\u767b\u9332\u5b8c\u4e86: {customer['name']}\u69d8\")\n<\/code><\/pre>\n<h3>\u30a2\u30f3\u30b1\u30fc\u30c8\u51e6\u7406<\/h3>\n<pre><code class=\"language-python\">responses = []\nquestions = [\"\u6e80\u8db3\u5ea6 (1-5): \", \"\u6539\u5584\u70b9: \"]\nfor question in questions:\n    response = input(question)\n    responses.append(response)\nprint(f\"\u56de\u7b54\u6570: {len(responses)}\")\n<\/code><\/pre>\n<h3>\u8a2d\u5b9a\u5024\u306e\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">config = {}\nconfig['host'] = input(\"\u30db\u30b9\u30c8\u540d [localhost]: \") or \"localhost\"\nconfig['port'] = int(input(\"\u30dd\u30fc\u30c8\u756a\u53f7 [8080]: \") or \"8080\")\nprint(f\"\u63a5\u7d9a\u5148: {config['host']}:{config['port']}\")\n<\/code><\/pre>\n<h2>\u30b2\u30fc\u30e0\u958b\u767a\u3067\u306e\u6d3b\u7528<\/h2>\n<h3>\u6570\u5f53\u3066\u30b2\u30fc\u30e0<\/h3>\n<pre><code class=\"language-python\">import random\ntarget = random.randint(1, 100)\nguess = int(input(\"1-100\u306e\u6570\u5b57\u3092\u4e88\u60f3: \"))\nif guess == target:\n    print(\"\u6b63\u89e3\uff01\")\nelse:\n    print(f\"\u4e0d\u6b63\u89e3\u3002\u7b54\u3048\u306f{target}\u3067\u3057\u305f\")\n<\/code><\/pre>\n<h3>\u3058\u3083\u3093\u3051\u3093\u30b2\u30fc\u30e0<\/h3>\n<pre><code class=\"language-python\">choices = {'1': '\u30b0\u30fc', '2': '\u30c1\u30e7\u30ad', '3': '\u30d1\u30fc'}\nprint(\"1: \u30b0\u30fc, 2: \u30c1\u30e7\u30ad, 3: \u30d1\u30fc\")\nplayer = input(\"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044: \")\nif player in choices:\n    print(f\"\u3042\u306a\u305f: {choices[player]}\")\n<\/code><\/pre>\n<h3>RPG\u98a8\u30b3\u30de\u30f3\u30c9<\/h3>\n<pre><code class=\"language-python\">while True:\n    action = input(\"\u884c\u52d5\u3092\u9078\u629e (\u653b\u6483\/\u9632\u5fa1\/\u9003\u3052\u308b): \").lower()\n    if action in ['\u653b\u6483', '\u9632\u5fa1', '\u9003\u3052\u308b']:\n        print(f\"{action}\u3092\u9078\u629e\u3057\u307e\u3057\u305f\")\n        break\n<\/code><\/pre>\n<h2>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a<\/h2>\n<h3>\u958b\u767a\u8a2d\u5b9a\u306e\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">debug_mode = input(\"\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9? (y\/n): \").lower() == 'y'\nport = int(input(\"\u30dd\u30fc\u30c8\u756a\u53f7 [5000]: \") or \"5000\")\nprint(f\"\u30c7\u30d0\u30c3\u30b0: {debug_mode}, \u30dd\u30fc\u30c8: {port}\")\n<\/code><\/pre>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u8a2d\u5b9a<\/h3>\n<pre><code class=\"language-python\">db_config = {\n    'host': input(\"DB \u30db\u30b9\u30c8: \"),\n    'user': input(\"DB \u30e6\u30fc\u30b6\u30fc: \"),\n    'database': input(\"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d: \")\n}\nprint(\"DB\u8a2d\u5b9a\u5b8c\u4e86\")\n<\/code><\/pre>\n<h2>\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3068\u306e\u9023\u643a<\/h2>\n<h3>\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u8fbc\u307f<\/h3>\n<pre><code class=\"language-python\">filename = input(\"\u8aad\u307f\u8fbc\u3080\u30d5\u30a1\u30a4\u30eb\u540d: \")\ntry:\n    with open(filename, 'r') as file:\n        content = file.read()\n        print(f\"\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba: {len(content)}\u6587\u5b57\")\nexcept FileNotFoundError:\n    print(\"\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\")\n<\/code><\/pre>\n<h3>\u30ed\u30b0\u51fa\u529b\u8a2d\u5b9a<\/h3>\n<pre><code class=\"language-python\">log_level = input(\"\u30ed\u30b0\u30ec\u30d9\u30eb (DEBUG\/INFO\/ERROR): \").upper()\nif log_level in ['DEBUG', 'INFO', 'ERROR']:\n    print(f\"\u30ed\u30b0\u30ec\u30d9\u30eb: {log_level}\")\n<\/code><\/pre>\n<h2>\u5165\u529b\u306e\u691c\u8a3c\u3068\u30b5\u30cb\u30bf\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3<\/h2>\n<h3>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u691c\u8a3c<\/h3>\n<pre><code class=\"language-python\">import re\nemail = input(\"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9: \")\npattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$'\nif re.match(pattern, email):\n    print(\"\u6709\u52b9\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u3059\")\nelse:\n    print(\"\u7121\u52b9\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u3059\")\n<\/code><\/pre>\n<h3>\u6570\u5024\u7bc4\u56f2\u30c1\u30a7\u30c3\u30af<\/h3>\n<pre><code class=\"language-python\">while True:\n    try:\n        score = int(input(\"\u30b9\u30b3\u30a2 (0-100): \"))\n        if 0 &lt;= score &lt;= 100:\n            break\n        print(\"0-100\u306e\u7bc4\u56f2\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\")\n    except ValueError:\n        print(\"\u6570\u5024\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\")\n<\/code><\/pre>\n<h3>\u6587\u5b57\u6570\u5236\u9650<\/h3>\n<pre><code class=\"language-python\">while True:\n    comment = input(\"\u30b3\u30e1\u30f3\u30c8 (50\u6587\u5b57\u4ee5\u5185): \")\n    if len(comment) &lt;= 50:\n        break\n    print(\"50\u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\")\n<\/code><\/pre>\n<h2>\u9ad8\u5ea6\u306a\u5165\u529b\u51e6\u7406<\/h2>\n<h3>\u8907\u6570\u884c\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">print(\"\u8907\u6570\u884c\u5165\u529b (\u7a7a\u884c\u3067\u7d42\u4e86):\")\nlines = []\nwhile True:\n    line = input()\n    if not line:\n        break\n    lines.append(line)\nprint(f\"\u5165\u529b\u884c\u6570: {len(lines)}\")\n<\/code><\/pre>\n<h3>CSV\u30e9\u30a4\u30af\u306a\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">data = input(\"\u30c7\u30fc\u30bf\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u5165\u529b: \")\nitems = [item.strip() for item in data.split(',')]\nprint(f\"\u9805\u76ee\u6570: {len(items)}\")\n<\/code><\/pre>\n<h3>JSON\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">import json\ntry:\n    json_str = input(\"JSON\u6587\u5b57\u5217\u3092\u5165\u529b: \")\n    data = json.loads(json_str)\n    print(f\"\u30ad\u30fc\u6570: {len(data)}\")\nexcept json.JSONDecodeError:\n    print(\"\u7121\u52b9\u306aJSON\u5f62\u5f0f\u3067\u3059\")\n<\/code><\/pre>\n<h2>\u30c6\u30b9\u30c8\u3068\u30c7\u30d0\u30c3\u30b0<\/h2>\n<h3>\u30e2\u30c3\u30af\u5165\u529b\uff08\u30c6\u30b9\u30c8\u7528\uff09<\/h3>\n<pre><code class=\"language-python\">import unittest.mock\n\n# \u30c6\u30b9\u30c8\u74b0\u5883\u3067\u306e\u5165\u529b\u30e2\u30c3\u30af\nwith unittest.mock.patch('builtins.input', return_value='test'):\n    user_input = input(\"\u30c6\u30b9\u30c8\u5165\u529b: \")\n    print(f\"\u30e2\u30c3\u30af\u5165\u529b: {user_input}\")\n<\/code><\/pre>\n<h3>\u30c7\u30d0\u30c3\u30b0\u7528\u5165\u529b<\/h3>\n<pre><code class=\"language-python\">def debug_input(prompt, default=\"\"):\n    user_input = input(f\"{prompt} [{default}]: \")\n    result = user_input if user_input else default\n    print(f\"DEBUG: '{result}'\")\n    return result\n<\/code><\/pre>\n<h2>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u6ce8\u610f\u70b9<\/h2>\n<h3>\u5927\u91cf\u5165\u529b\u306e\u51e6\u7406<\/h3>\n<pre><code class=\"language-python\">import sys\n\n# \u5927\u91cf\u30c7\u30fc\u30bf\u306e\u52b9\u7387\u7684\u306a\u8aad\u307f\u8fbc\u307f\nprint(\"\u30c7\u30fc\u30bf\u3092\u5165\u529b (Ctrl+D \u3067\u7d42\u4e86):\")\nall_input = sys.stdin.read().strip()\nlines = all_input.split('\\n')\nprint(f\"\u51e6\u7406\u884c\u6570: {len(lines)}\")\n<\/code><\/pre>\n<h3>\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u51e6\u7406<\/h3>\n<pre><code class=\"language-python\">import signal\n\ndef timeout_handler(signum, frame):\n    raise TimeoutError(\"\u5165\u529b\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\")\n\nsignal.signal(signal.SIGALRM, timeout_handler)\nsignal.alarm(10)  # 10\u79d2\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\n\ntry:\n    user_input = input(\"10\u79d2\u4ee5\u5185\u306b\u5165\u529b: \")\n    signal.alarm(0)  # \u30bf\u30a4\u30de\u30fc\u30ea\u30bb\u30c3\u30c8\n    print(f\"\u5165\u529b: {user_input}\")\nexcept TimeoutError:\n    print(\"\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3057\u307e\u3057\u305f\")\n<\/code><\/pre>\n<h2>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u6d3b\u7528<\/h2>\n<h3>CLI\u30c4\u30fc\u30eb\u306e\u4f5c\u6210<\/h3>\n<pre><code class=\"language-python\">def create_user():\n    user = {\n        'name': input(\"\u540d\u524d: \"),\n        'age': int(input(\"\u5e74\u9f62: \")),\n        'email': input(\"\u30e1\u30fc\u30eb: \")\n    }\n    return user\n\n# \u4f7f\u7528\u4f8b\nnew_user = create_user()\nprint(f\"\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210: {new_user['name']}\")\n<\/code><\/pre>\n<h3>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u751f\u6210<\/h3>\n<pre><code class=\"language-python\">def generate_config():\n    config = {}\n    config['api_key'] = input(\"API \u30ad\u30fc: \")\n    config['timeout'] = int(input(\"\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u79d2\u6570: \") or \"30\")\n    config['debug'] = input(\"\u30c7\u30d0\u30c3\u30b0 (y\/n): \").lower() == 'y'\n    return config\n<\/code><\/pre>\n<h3>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30b9\u30af\u30ea\u30d7\u30c8<\/h3>\n<pre><code class=\"language-python\">def interactive_calculator():\n    while True:\n        operation = input(\"\u8a08\u7b97\u5f0f\u3092\u5165\u529b (\u4f8b: 2+3, 'quit'\u3067\u7d42\u4e86): \")\n        if operation.lower() == 'quit':\n            break\n        try:\n            result = eval(operation)\n            print(f\"\u7d50\u679c: {result}\")\n        except:\n            print(\"\u7121\u52b9\u306a\u5f0f\u3067\u3059\")\n<\/code><\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Python \u306e input() \u95a2\u6570\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u304b\u3064\u91cd\u8981\u306a\u6a5f\u80fd\u3067\u3059\u3002\u5358\u7d14\u306a\u6587\u5b57\u5217\u5165\u529b\u304b\u3089\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u53ce\u96c6\u307e\u3067\u3001\u69d8\u3005\u306a\u5834\u9762\u3067\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\uff1a<\/p>\n<ul>\n<li>\u5e38\u306b\u6587\u5b57\u5217\u3068\u3057\u3066\u5165\u529b\u3092\u53d7\u3051\u53d6\u308b<\/li>\n<li>\u9069\u5207\u306a\u578b\u5909\u63db\u3068\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u304c\u5fc5\u8981<\/li>\n<li>\u5165\u529b\u691c\u8a3c\u3068\u30b5\u30cb\u30bf\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3\u3092\u5fd8\u308c\u305a\u306b<\/li>\n<li>\u30e6\u30fc\u30b6\u30d3\u30ea\u30c6\u30a3\u3092\u8003\u616e\u3057\u305f\u30d7\u30ed\u30f3\u30d7\u30c8\u8a2d\u8a08<\/li>\n<\/ul>\n<p>\u672c\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u69d8\u3005\u306a\u4f7f\u7528\u4f8b\u3092\u53c2\u8003\u306b\u3001\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067 input() \u95a2\u6570\u3092\u52b9\u679c\u7684\u306b\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u306a\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\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=\"LaOI3yuvB0\"><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=hXKGQaNbJI#?secret=LaOI3yuvB0\" data-secret=\"LaOI3yuvB0\" 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=\"8t7z3BlftL\"><a href=\"https:\/\/techgym.jp\/about\/ai-driven-development\/\">AI\u6642\u4ee3\u306e\u7b2c\u4e00\u6b69\uff01\u300cAI\u99c6\u52d5\u958b\u767a\u30b3\u30fc\u30b9\u300d\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\u6642\u4ee3\u306e\u7b2c\u4e00\u6b69\uff01\u300cAI\u99c6\u52d5\u958b\u767a\u30b3\u30fc\u30b9\u300d\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=FtNBb9sHev#?secret=8t7z3BlftL\" data-secret=\"8t7z3BlftL\" 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=\"HNYlJ9lUKa\"><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=F1FCTRg9te#?secret=HNYlJ9lUKa\" data-secret=\"HNYlJ9lUKa\" 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=\"WFDZJurQq4\"><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=ZdGfKTxn2G#?secret=WFDZJurQq4\" data-secret=\"WFDZJurQq4\" 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=\"DH1syI4hB0\"><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=aVwupG9XTC#?secret=DH1syI4hB0\" data-secret=\"DH1syI4hB0\" 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=\"xdPzVQKoYa\"><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=qlRrppTLCN#?secret=xdPzVQKoYa\" data-secret=\"xdPzVQKoYa\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Python\u306einput()\u95a2\u6570\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306e\u6a19\u6e96\u7684\u306a\u65b9\u6cd5\u3067\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u6b20\u304b\u305b\u306a\u3044\u6a5f\u80fd\u3067\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30c7\u30fc\u30bf\u5165\u529b\u51e6\u7406\u307e\u3067\u5e45\u5e83\u304f\u6d3b\u7528\u3055 [&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-42986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column"],"views":55,"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\/42986","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=42986"}],"version-history":[{"count":0,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts\/42986\/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=42986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/categories?post=42986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/tags?post=42986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}