{"id":43420,"date":"2025-07-31T13:53:37","date_gmt":"2025-07-31T04:53:37","guid":{"rendered":"https:\/\/techgym.jp\/?p=43420"},"modified":"2025-10-27T17:54:48","modified_gmt":"2025-10-27T08:54:48","slug":"python-class","status":"publish","type":"post","link":"https:\/\/techgym.jp\/column\/python-class\/","title":{"rendered":"Python\u30af\u30e9\u30b9\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u5b8c\u5168\u30ac\u30a4\u30c9 &#8211; \u5b9f\u8df5\u7684\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9"},"content":{"rendered":"\n<p><style>\n.ranking-table {\n    width: 100%;\n    border-collapse: collapse;\n    margin: 20px 0;\n}\n.ranking-table td {\n    padding: 20px;\n    border: 1px solid #e0e0e0;\n    vertical-align: top;\n}\n.ranking-table td:first-child {\n    width: 200px;\n    text-align: center;\n    background-color: #f9f9f9;\n}\n.ranking-table img {\n    display: block;\n    margin: 10px auto;\n    max-width: 100%;\n    height: auto;\n}\n.ranking-table a {\n    color: #0066cc;\n    text-decoration: none;\n    font-weight: bold;\n}\n.ranking-table a:hover {\n    text-decoration: underline;\n}\n<\/style><\/p>\n<table class=\"ranking-table\">\n<tbody>\n<tr>\n<td><a href=\"\/\/af.moshimo.com\/af\/c\/click?a_id=5161740&amp;p_id=6820&amp;pc_id=19517&amp;pl_id=90728\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\" attributionsrc=\"\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/image.moshimo.com\/af-img\/6634\/000000090728.png?resize=120%2C60\" width=\"120\" height=\"60\" style=\"border: none;\" \/><\/a><img decoding=\"async\" src=\"\/\/i.moshimo.com\/af\/i\/impression?a_id=5161740&amp;p_id=6820&amp;pc_id=19517&amp;pl_id=90728\" width=\"1\" height=\"1\" style=\"border: none;\" loading=\"lazy\" \/><strong><a href=\"http:\/\/msm.to\/2ULVG5u\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9<\/a><\/strong><\/td>\n<td>\n<p><strong>20\u4e07\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u304b\u3089\u3001\u526f\u696d\u306b\u6700\u9069\u306a\u30ea\u30e2\u30fc\u30c8\u30fb\u90313\u301c\u306e\u6848\u4ef6\u3092\u4e00\u62ec\u691c\u7d22\u3067\u304d\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3002<\/strong><strong>\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u767b\u9332\u3067AI\u30b9\u30ab\u30a6\u30c8\u304c\u81ea\u52d5\u7684\u306b\u30de\u30c3\u30c1\u30f3\u30b0\u6848\u4ef6\u3092\u63d0\u6848\u3002<\/strong><strong>\u5e02\u5834\u7d71\u8a08\u3084\u5358\u4fa1\u76f8\u5834\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u53e3\u30b3\u30df\u3082\u7121\u6599\u3067\u95b2\u89a7\u53ef\u80fd\u306a\u305f\u3081\u3001\u672c\u696d\u3092\u7d9a\u3051\u306a\u304c\u3089\u52b9\u7387\u7684\u306b\u9ad8\u5358\u4fa1\u306e\u526f\u696d\u6848\u4ef6\u3092\u63a2\u305b\u307e\u3059\u3002<a href=\"http:\/\/msm.to\/2ULVG5u\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9<\/a><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+61C2P\" rel=\"nofollow\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"120\" height=\"60\" alt=\"\" src=\"https:\/\/www29.a8.net\/svt\/bgt?aid=250928846375&amp;wid=001&amp;eno=01&amp;mid=s00000018714001014000&amp;mc=1\" \/><\/a> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www14.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" \/> <strong><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+5YJRM\" target=\"_blank\" rel=\"noopener\">IT\u30d7\u30ed\u30d1\u30fc\u30c8\u30ca\u30fc\u30ba<\/a><\/strong><\/td>\n<td>\n<p><strong>\u90312\u301c3\u65e5\u304b\u3089\u50cd\u3051\u308b\u67d4\u8edf\u306a\u6848\u4ef6\u304c\u696d\u754c\u30c8\u30c3\u30d7\u30af\u30e9\u30b9\u306e\u8c4a\u5bcc\u3055\u3092\u8a87\u308b\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3002<\/strong><strong>\u30a8\u30f3\u30c9\u76f4\u5951\u7d04\u306e\u305f\u3081\u9ad8\u5358\u4fa1\u3067\u3001\u90313\u65e5\u7a3c\u50cd\u3067\u3082\u5341\u5206\u306a\u5831\u916c\u3092\u5f97\u3089\u308c\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u3084\u6642\u9593\u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u306a\u6848\u4ef6\u3082\u591a\u6570\u3002\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30fb\u30d9\u30f3\u30c1\u30e3\u30fc\u4e2d\u5fc3\u3067\u3001\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u3092\u4f7f\u3063\u305f\u9b45\u529b\u7684\u306a\u6848\u4ef6\u304c\u63c3\u3063\u3066\u3044\u307e\u3059\u3002\u5c02\u5c5e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u6848\u4ef6\u7d39\u4ecb\u304b\u3089\u5951\u7d04\u4ea4\u6e09\u307e\u3067\u30b5\u30dd\u30fc\u30c8\u3002\u5229\u7528\u4f01\u696d2,000\u793e\u4ee5\u4e0a\u306e\u5b9f\u7e3e\u3002<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+5YJRM\" target=\"_blank\" rel=\"noopener\">IT\u30d7\u30ed\u30d1\u30fc\u30c8\u30ca\u30fc\u30ba<\/a><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BYLJL\" rel=\"nofollow\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"100\" height=\"60\" alt=\"\" src=\"https:\/\/www21.a8.net\/svt\/bgt?aid=251019989646&amp;wid=001&amp;eno=01&amp;mid=s00000017868002009000&amp;mc=1\" \/><\/a> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www16.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" \/> <strong> <a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BWVTE\" target=\"_blank\" rel=\"noopener\">Midworks<\/a> <\/strong><\/td>\n<td><strong>10,000\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u3092\u4fdd\u6709\u3057\u3001\u90313\u65e5\u301c\u30fb\u30d5\u30eb\u30ea\u30e2\u30fc\u30c8\u306a\u3069\u67d4\u8edf\u306a\u50cd\u304d\u65b9\u306b\u5bfe\u5fdc\u3002\u9ad8\u5358\u4fa1\u6848\u4ef6\u304c\u8c4a\u5bcc\u3067\u3001\u5831\u916c\u4fdd\u969c\u5236\u5ea6\uff0860%\uff09\u3084\u4fdd\u967a\u6599\u8ca0\u62c5\uff0850%\uff09\u306a\u3069\u6b63\u793e\u54e1\u4e26\u307f\u306e\u624b\u539a\u3044\u798f\u5229\u539a\u751f\u304c\u7279\u5fb4\u3002\u901a\u52e4\u4ea4\u901a\u8cbb\uff08\u67083\u4e07\u5186\uff09\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u8cbb\u7528\uff08\u67081\u4e07\u5186\uff09\u306e\u652f\u7d66\u306b\u52a0\u3048\u3001\u30ea\u30ed\u30af\u30e9\u30d6\u30fbfreee\u304c\u7121\u6599\u5229\u7528\u53ef\u80fd\u3002\u975e\u516c\u958b\u6848\u4ef680%\u4ee5\u4e0a\u3001\u652f\u6255\u3044\u30b5\u30a4\u30c820\u65e5\u3067\u5b89\u5fc3\u3057\u3066\u7a3c\u50cd\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BWVTE\" target=\"_blank\" rel=\"noopener\">Midworks<\/a><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p><iframe loading=\"lazy\" width=\"560\" height=\"314\" src=\"\/\/www.youtube.com\/embed\/7iX9nAJE0cE\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n<p>Python\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u969b\u3001\u9069\u5207\u306a\u30af\u30e9\u30b9\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u306f\u3001\u4fdd\u5b88\u6027\u304c\u9ad8\u304f\u62e1\u5f35\u3057\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u305f\u3081\u306b\u91cd\u8981\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001Python\u306b\u304a\u3051\u308b\u4e3b\u8981\u306a\u30af\u30e9\u30b9\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\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>\u30af\u30e9\u30b9\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3068\u306f<\/h2>\n<p>\u30af\u30e9\u30b9\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066\u3001\u3088\u304f\u767a\u751f\u3059\u308b\u554f\u984c\u306b\u5bfe\u3059\u308b\u518d\u5229\u7528\u53ef\u80fd\u306a\u89e3\u6c7a\u7b56\u3092\u4f53\u7cfb\u5316\u3057\u305f\u3082\u306e\u3067\u3059\u3002GoF\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u4e2d\u5fc3\u306b\u3001Python\u306e\u7279\u6027\u3092\u6d3b\u304b\u3057\u305f\u8a2d\u8a08\u624b\u6cd5\u3092\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u751f\u6210\u30d1\u30bf\u30fc\u30f3\uff08Creational Patterns\uff09<\/h2>\n<h3>1. Singleton\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c1\u3064\u3060\u3051\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class Singleton:\n    _instance = None\n    \n    def __new__(cls):\n        if cls._instance is None:\n            cls._instance = super().__new__(cls)\n        return cls._instance\n\n# \u4f7f\u7528\u4f8b\ns1 = Singleton()\ns2 = Singleton()\nprint(s1 is s2)  # True\n<\/code><\/pre>\n<h3>2. Factory\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u751f\u6210\u3092\u5c02\u7528\u306e\u30af\u30e9\u30b9\u306b\u59d4\u8a17\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class Animal:\n    def speak(self): pass\n\nclass Dog(Animal):\n    def speak(self): return \"Woof!\"\n\nclass Cat(Animal):\n    def speak(self): return \"Meow!\"\n\nclass AnimalFactory:\n    @staticmethod\n    def create(animal_type):\n        animals = {\"dog\": Dog, \"cat\": Cat}\n        return animals.get(animal_type, Dog)()\n\n# \u4f7f\u7528\u4f8b\ndog = AnimalFactory.create(\"dog\")\nprint(dog.speak())  # Woof!\n<\/code><\/pre>\n<h3>3. Builder\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u8907\u96d1\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6bb5\u968e\u7684\u306b\u69cb\u7bc9\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class Car:\n    def __init__(self):\n        self.engine = None\n        self.wheels = None\n        self.color = None\n\nclass CarBuilder:\n    def __init__(self):\n        self.car = Car()\n    \n    def add_engine(self, engine):\n        self.car.engine = engine\n        return self\n    \n    def add_wheels(self, wheels):\n        self.car.wheels = wheels\n        return self\n    \n    def set_color(self, color):\n        self.car.color = color\n        return self\n    \n    def build(self):\n        return self.car\n\n# \u4f7f\u7528\u4f8b\ncar = CarBuilder().add_engine(\"V8\").add_wheels(4).set_color(\"Red\").build()\n<\/code><\/pre>\n<h2>\u69cb\u9020\u30d1\u30bf\u30fc\u30f3\uff08Structural Patterns\uff09<\/h2>\n<h3>1. Adapter\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u4e92\u63db\u6027\u306e\u306a\u3044\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u6301\u3064\u30af\u30e9\u30b9\u540c\u58eb\u3092\u9023\u643a\u3055\u305b\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class OldSystem:\n    def old_request(self):\n        return \"Old system response\"\n\nclass NewSystem:\n    def new_request(self):\n        return \"New system response\"\n\nclass Adapter:\n    def __init__(self, old_system):\n        self.old_system = old_system\n    \n    def new_request(self):\n        return self.old_system.old_request()\n\n# \u4f7f\u7528\u4f8b\nold = OldSystem()\nadapter = Adapter(old)\nprint(adapter.new_request())  # Old system response\n<\/code><\/pre>\n<h3>2. Decorator\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u65e2\u5b58\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u65b0\u3057\u3044\u6a5f\u80fd\u3092\u52d5\u7684\u306b\u8ffd\u52a0\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class Coffee:\n    def cost(self): return 300\n    def description(self): return \"Coffee\"\n\nclass MilkDecorator:\n    def __init__(self, coffee):\n        self.coffee = coffee\n    \n    def cost(self): return self.coffee.cost() + 50\n    def description(self): return self.coffee.description() + \" + Milk\"\n\nclass SugarDecorator:\n    def __init__(self, coffee):\n        self.coffee = coffee\n    \n    def cost(self): return self.coffee.cost() + 10\n    def description(self): return self.coffee.description() + \" + Sugar\"\n\n# \u4f7f\u7528\u4f8b\ncoffee = Coffee()\ncoffee = MilkDecorator(coffee)\ncoffee = SugarDecorator(coffee)\nprint(f\"{coffee.description()}: {coffee.cost()}\u5186\")\n<\/code><\/pre>\n<h3>3. Composite\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u90e8\u5206-\u5168\u4f53\u306e\u95a2\u4fc2\u3092\u6728\u69cb\u9020\u3067\u8868\u73fe\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class Component:\n    def operation(self): pass\n\nclass Leaf(Component):\n    def __init__(self, name):\n        self.name = name\n    \n    def operation(self):\n        return f\"Leaf {self.name}\"\n\nclass Composite(Component):\n    def __init__(self):\n        self.children = []\n    \n    def add(self, component):\n        self.children.append(component)\n    \n    def operation(self):\n        results = [child.operation() for child in self.children]\n        return f\"Composite({', '.join(results)})\"\n\n# \u4f7f\u7528\u4f8b\nleaf1 = Leaf(\"A\")\nleaf2 = Leaf(\"B\")\ncomposite = Composite()\ncomposite.add(leaf1)\ncomposite.add(leaf2)\nprint(composite.operation())\n<\/code><\/pre>\n<h2>\u632f\u308b\u821e\u3044\u30d1\u30bf\u30fc\u30f3\uff08Behavioral Patterns\uff09<\/h2>\n<h3>1. Observer\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u72b6\u614b\u5909\u5316\u3092\u8907\u6570\u306e\u30aa\u30d6\u30b6\u30fc\u30d0\u30fc\u306b\u901a\u77e5\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class Subject:\n    def __init__(self):\n        self._observers = []\n        self._state = None\n    \n    def attach(self, observer):\n        self._observers.append(observer)\n    \n    def notify(self):\n        for observer in self._observers:\n            observer.update(self._state)\n    \n    def set_state(self, state):\n        self._state = state\n        self.notify()\n\nclass Observer:\n    def __init__(self, name):\n        self.name = name\n    \n    def update(self, state):\n        print(f\"{self.name} received: {state}\")\n\n# \u4f7f\u7528\u4f8b\nsubject = Subject()\nobserver1 = Observer(\"Observer1\")\nobserver2 = Observer(\"Observer2\")\nsubject.attach(observer1)\nsubject.attach(observer2)\nsubject.set_state(\"New State\")\n<\/code><\/pre>\n<h3>2. Strategy\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u52d5\u7684\u306b\u5207\u308a\u66ff\u3048\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class PaymentStrategy:\n    def pay(self, amount): pass\n\nclass CreditCard(PaymentStrategy):\n    def pay(self, amount):\n        return f\"Paid {amount} with Credit Card\"\n\nclass PayPal(PaymentStrategy):\n    def pay(self, amount):\n        return f\"Paid {amount} with PayPal\"\n\nclass ShoppingCart:\n    def __init__(self):\n        self.payment_strategy = None\n    \n    def set_payment_strategy(self, strategy):\n        self.payment_strategy = strategy\n    \n    def checkout(self, amount):\n        return self.payment_strategy.pay(amount)\n\n# \u4f7f\u7528\u4f8b\ncart = ShoppingCart()\ncart.set_payment_strategy(CreditCard())\nprint(cart.checkout(1000))  # Paid 1000 with Credit Card\n<\/code><\/pre>\n<h3>3. Command \u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u30ab\u30d7\u30bb\u30eb\u5316\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">class Command:\n    def execute(self): pass\n    def undo(self): pass\n\nclass Light:\n    def __init__(self):\n        self.is_on = False\n    \n    def turn_on(self):\n        self.is_on = True\n        return \"Light is ON\"\n    \n    def turn_off(self):\n        self.is_on = False\n        return \"Light is OFF\"\n\nclass LightOnCommand(Command):\n    def __init__(self, light):\n        self.light = light\n    \n    def execute(self):\n        return self.light.turn_on()\n    \n    def undo(self):\n        return self.light.turn_off()\n\nclass RemoteControl:\n    def __init__(self):\n        self.command = None\n    \n    def set_command(self, command):\n        self.command = command\n    \n    def press_button(self):\n        return self.command.execute()\n\n# \u4f7f\u7528\u4f8b\nlight = Light()\nlight_on = LightOnCommand(light)\nremote = RemoteControl()\nremote.set_command(light_on)\nprint(remote.press_button())  # Light is ON\n<\/code><\/pre>\n<h2>Python\u3089\u3057\u3044\u30af\u30e9\u30b9\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3<\/h2>\n<h3>1. \u30c7\u30fc\u30bf\u30af\u30e9\u30b9\uff08Python 3.7+\uff09<\/h3>\n<pre><code class=\"language-python\">from dataclasses import dataclass\n\n@dataclass\nclass Person:\n    name: str\n    age: int\n    email: str = \"\"\n    \n    def is_adult(self):\n        return self.age &gt;= 18\n\n# \u4f7f\u7528\u4f8b\nperson = Person(\"\u592a\u90ce\", 25)\nprint(person.is_adult())  # True\n<\/code><\/pre>\n<h3>2. \u30d7\u30ed\u30d1\u30c6\u30a3\u30d1\u30bf\u30fc\u30f3<\/h3>\n<pre><code class=\"language-python\">class Temperature:\n    def __init__(self, celsius=0):\n        self._celsius = celsius\n    \n    @property\n    def celsius(self):\n        return self._celsius\n    \n    @celsius.setter\n    def celsius(self, value):\n        if value &lt; -273.15:\n            raise ValueError(\"Temperature below absolute zero\")\n        self._celsius = value\n    \n    @property\n    def fahrenheit(self):\n        return self._celsius * 9\/5 + 32\n\n# \u4f7f\u7528\u4f8b\ntemp = Temperature(25)\nprint(temp.fahrenheit)  # 77.0\n<\/code><\/pre>\n<h3>3. \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<\/h3>\n<pre><code class=\"language-python\">class FileManager:\n    def __init__(self, filename, mode):\n        self.filename = filename\n        self.mode = mode\n        self.file = None\n    \n    def __enter__(self):\n        self.file = open(self.filename, self.mode)\n        return self.file\n    \n    def __exit__(self, exc_type, exc_val, exc_tb):\n        if self.file:\n            self.file.close()\n\n# \u4f7f\u7528\u4f8b\nwith FileManager(\"test.txt\", \"w\") as f:\n    f.write(\"Hello, World!\")\n<\/code><\/pre>\n<h2>\u30af\u30e9\u30b9\u7d99\u627f\u3068Mixin<\/h2>\n<h3>1. \u591a\u91cd\u7d99\u627f\u3068Mixin<\/h3>\n<pre><code class=\"language-python\">class Mixin1:\n    def method1(self):\n        return \"Method from Mixin1\"\n\nclass Mixin2:\n    def method2(self):\n        return \"Method from Mixin2\"\n\nclass MyClass(Mixin1, Mixin2):\n    def my_method(self):\n        return f\"{self.method1()} and {self.method2()}\"\n\n# \u4f7f\u7528\u4f8b\nobj = MyClass()\nprint(obj.my_method())\n<\/code><\/pre>\n<h3>2. \u62bd\u8c61\u57fa\u5e95\u30af\u30e9\u30b9<\/h3>\n<pre><code class=\"language-python\">from abc import ABC, abstractmethod\n\nclass Animal(ABC):\n    @abstractmethod\n    def make_sound(self):\n        pass\n    \n    def sleep(self):\n        return \"Sleeping...\"\n\nclass Dog(Animal):\n    def make_sound(self):\n        return \"Woof!\"\n\n# \u4f7f\u7528\u4f8b\ndog = Dog()\nprint(dog.make_sound())  # Woof!\nprint(dog.sleep())       # Sleeping...\n<\/code><\/pre>\n<h2>\u5b9f\u8df5\u7684\u306a\u30af\u30e9\u30b9\u8a2d\u8a08\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h2>\n<h3>1. SOLID\u539f\u5247\u306e\u9069\u7528<\/h3>\n<pre><code class=\"language-python\"># Single Responsibility Principle\nclass UserValidator:\n    def validate_email(self, email):\n        return \"@\" in email\n\nclass UserRepository:\n    def save_user(self, user):\n        # \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4fdd\u5b58\u51e6\u7406\n        pass\n\n# Open\/Closed Principle\nclass Shape:\n    def area(self): pass\n\nclass Rectangle(Shape):\n    def __init__(self, width, height):\n        self.width = width\n        self.height = height\n    \n    def area(self):\n        return self.width * self.height\n<\/code><\/pre>\n<h3>2. \u4f9d\u5b58\u6027\u6ce8\u5165<\/h3>\n<pre><code class=\"language-python\">class DatabaseConnection:\n    def connect(self): pass\n\nclass UserService:\n    def __init__(self, db_connection):\n        self.db = db_connection\n    \n    def get_user(self, user_id):\n        # self.db.connect()\u3092\u4f7f\u7528\n        pass\n\n# \u4f7f\u7528\u4f8b\ndb = DatabaseConnection()\nservice = UserService(db)\n<\/code><\/pre>\n<h3>3. \u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h3>\n<pre><code class=\"language-python\">class CustomError(Exception):\n    def __init__(self, message, error_code=None):\n        super().__init__(message)\n        self.error_code = error_code\n\nclass Calculator:\n    def divide(self, a, b):\n        if b == 0:\n            raise CustomError(\"Division by zero\", error_code=400)\n        return a \/ b\n\n# \u4f7f\u7528\u4f8b\ncalc = Calculator()\ntry:\n    result = calc.divide(10, 0)\nexcept CustomError as e:\n    print(f\"Error: {e}, Code: {e.error_code}\")\n<\/code><\/pre>\n<h2>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316<\/h2>\n<h3>1. __slots__\u306e\u4f7f\u7528<\/h3>\n<pre><code class=\"language-python\">class Point:\n    __slots__ = ['x', 'y']\n    \n    def __init__(self, x, y):\n        self.x = x\n        self.y = y\n\n# \u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u524a\u6e1b\npoint = Point(10, 20)\n<\/code><\/pre>\n<h3>2. \u30ad\u30e3\u30c3\u30b7\u30e5\u30d1\u30bf\u30fc\u30f3<\/h3>\n<pre><code class=\"language-python\">from functools import lru_cache\n\nclass Fibonacci:\n    @lru_cache(maxsize=None)\n    def calculate(self, n):\n        if n &lt; 2:\n            return n\n        return self.calculate(n-1) + self.calculate(n-2)\n\n# \u4f7f\u7528\u4f8b\nfib = Fibonacci()\nprint(fib.calculate(10))  # \u9ad8\u901f\u8a08\u7b97\n<\/code><\/pre>\n<h2>\u3088\u304f\u3042\u308b\u8a2d\u8a08\u4e0a\u306e\u843d\u3068\u3057\u7a74<\/h2>\n<h3>1. \u795e\u30af\u30e9\u30b9\uff08God Class\uff09\u306e\u56de\u907f<\/h3>\n<pre><code class=\"language-python\"># \u907f\u3051\u308b\u3079\u304d\uff1a\u3059\u3079\u3066\u3092\u884c\u3046\u30af\u30e9\u30b9\nclass UserManager:\n    def validate_user(self): pass\n    def save_user(self): pass\n    def send_email(self): pass\n    def generate_report(self): pass\n\n# \u63a8\u5968\uff1a\u8cac\u4efb\u3092\u5206\u6563\nclass UserValidator:\n    def validate(self): pass\n\nclass UserRepository:\n    def save(self): pass\n\nclass EmailService:\n    def send(self): pass\n<\/code><\/pre>\n<h3>2. \u5faa\u74b0\u4f9d\u5b58\u306e\u56de\u907f<\/h3>\n<pre><code class=\"language-python\"># \u907f\u3051\u308b\u3079\u304d\uff1a\u5faa\u74b0\u4f9d\u5b58\n# class A:\n#     def __init__(self):\n#         self.b = B(self)\n\n# \u63a8\u5968\uff1a\u4f9d\u5b58\u6027\u6ce8\u5165\u3084\u62bd\u8c61\u5316\nclass A:\n    def __init__(self, b_instance=None):\n        self.b = b_instance\n<\/code><\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Python\u30af\u30e9\u30b9\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u3053\u3068\u3067\u3001\u4fdd\u5b88\u6027\u304c\u9ad8\u304f\u62e1\u5f35\u3057\u3084\u3059\u3044\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306f\u4e07\u80fd\u85ac\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u9069\u5207\u306a\u5834\u9762\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u91cd\u8981\u306a\u306e\u306f\u3001SOLID\u539f\u5247\u306b\u57fa\u3065\u3044\u305f\u8a2d\u8a08\u3092\u5fc3\u304c\u3051\u3001\u904e\u5ea6\u306b\u8907\u96d1\u306a\u8a2d\u8a08\u3092\u907f\u3051\u308b\u3053\u3068\u3067\u3059\u3002Python\u306e\u7279\u6027\u3092\u6d3b\u304b\u3057\u306a\u304c\u3089\u3001\u30c1\u30fc\u30e0\u306e\u958b\u767a\u52b9\u7387\u3068\u4fdd\u5b88\u6027\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u3063\u305f\u8a2d\u8a08\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u7d99\u7d9a\u7684\u306a\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3068\u8a2d\u8a08\u30ec\u30d3\u30e5\u30fc\u3092\u901a\u3058\u3066\u3001\u3088\u308a\u826f\u3044\u30af\u30e9\u30b9\u8a2d\u8a08\u30b9\u30ad\u30eb\u3092\u8eab\u306b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><iframe loading=\"lazy\" width=\"560\" height=\"314\" src=\"\/\/www.youtube.com\/embed\/7iX9nAJE0cE\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u25a0<a href=\"https:\/\/amzn.to\/3VxGkpx\">\u300c\u3089\u304f\u3089\u304fPython\u587e\u300d\u304c\u5207\u308a\u958b\u304f\u300c\u546a\u6587\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u300d\u3068\u306f\uff1f<\/a><\/h2>\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=\"Lnd0xHcXEI\"><a href=\"https:\/\/techgym.jp\/about\/rakurakupython\/\">\u3010\u9769\u547d\u7684\u5b66\u7fd2\u6cd5\u3011\u300c\u3089\u304f\u3089\u304fPython\u587e\u300d\u304c\u5207\u308a\u958b\u304f\u3001\u546a\u6587\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u3044\u3046\u65b0\u6642\u4ee3\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7fd2\u5f97\u8853<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u3010\u9769\u547d\u7684\u5b66\u7fd2\u6cd5\u3011\u300c\u3089\u304f\u3089\u304fPython\u587e\u300d\u304c\u5207\u308a\u958b\u304f\u3001\u546a\u6587\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u3044\u3046\u65b0\u6642\u4ee3\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7fd2\u5f97\u8853&#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\/rakurakupython\/embed\/#?secret=Ko0IXiPBMK#?secret=Lnd0xHcXEI\" data-secret=\"Lnd0xHcXEI\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\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=\"1gd3YUJ2p1\"><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=HVnDerjxjq#?secret=1gd3YUJ2p1\" data-secret=\"1gd3YUJ2p1\" 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=\"FeFjJYN5oN\"><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=ERLCDzUcIN#?secret=FeFjJYN5oN\" data-secret=\"FeFjJYN5oN\" 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=\"uk0K3RNKgW\"><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=spN5guiAY1#?secret=uk0K3RNKgW\" data-secret=\"uk0K3RNKgW\" 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=\"UgITNAyyM4\"><a href=\"https:\/\/techgym.jp\/event\/nagatacho_camp\/\">\u3010\u6700\u901f\u30fb\u78ba\u5b9f\u3011\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u653b\u7565\u300c\u6c38\u7530\u753aPython\u30df\u30cb\u30ad\u30e3\u30f3\u30d7\u300d\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;\u3010\u6700\u901f\u30fb\u78ba\u5b9f\u3011\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u653b\u7565\u300c\u6c38\u7530\u753aPython\u30df\u30cb\u30ad\u30e3\u30f3\u30d7\u300d\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=ME1bC8E8jD#?secret=UgITNAyyM4\" data-secret=\"UgITNAyyM4\" 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=\"9FJpMZULjU\"><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=1UgPzMh6D8#?secret=9FJpMZULjU\" data-secret=\"9FJpMZULjU\" 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=\"k62plLEILL\"><a href=\"https:\/\/techgym.jp\/tokyo_python\/\">\u3010\u7121\u6599\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u3011\u30bc\u30ed\u304b\u3089\u306f\u3058\u3081\u308bPython\u7206\u901f\u8b1b\u5ea7<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u3010\u7121\u6599\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u3011\u30bc\u30ed\u304b\u3089\u306f\u3058\u3081\u308bPython\u7206\u901f\u8b1b\u5ea7&#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=IcIZ8IlVyK#?secret=k62plLEILL\" data-secret=\"k62plLEILL\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><style>\n.ranking-table {\n    width: 100%;\n    border-collapse: collapse;\n    margin: 20px 0;\n}\n.ranking-table td {\n    padding: 20px;\n    border: 1px solid #e0e0e0;\n    vertical-align: top;\n}\n.ranking-table td:first-child {\n    width: 200px;\n    text-align: center;\n    background-color: #f9f9f9;\n}\n.ranking-table img {\n    display: block;\n    margin: 10px auto;\n    max-width: 100%;\n    height: auto;\n}\n.ranking-table a {\n    color: #0066cc;\n    text-decoration: none;\n    font-weight: bold;\n}\n.ranking-table a:hover {\n    text-decoration: underline;\n}\n<\/style><\/p>\n<table class=\"ranking-table\">\n<tbody>\n<tr>\n<td><a href=\"\/\/af.moshimo.com\/af\/c\/click?a_id=5161740&amp;p_id=6820&amp;pc_id=19517&amp;pl_id=90728\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\" attributionsrc=\"\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/image.moshimo.com\/af-img\/6634\/000000090728.png?resize=120%2C60\" width=\"120\" height=\"60\" style=\"border: none;\" \/><\/a><img decoding=\"async\" src=\"\/\/i.moshimo.com\/af\/i\/impression?a_id=5161740&amp;p_id=6820&amp;pc_id=19517&amp;pl_id=90728\" width=\"1\" height=\"1\" style=\"border: none;\" loading=\"lazy\" \/><strong><a href=\"http:\/\/msm.to\/2ULVG5u\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9<\/a><\/strong><\/td>\n<td>\n<p><strong>20\u4e07\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u304b\u3089\u3001\u526f\u696d\u306b\u6700\u9069\u306a\u30ea\u30e2\u30fc\u30c8\u30fb\u90313\u301c\u306e\u6848\u4ef6\u3092\u4e00\u62ec\u691c\u7d22\u3067\u304d\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3002<\/strong><strong>\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u767b\u9332\u3067AI\u30b9\u30ab\u30a6\u30c8\u304c\u81ea\u52d5\u7684\u306b\u30de\u30c3\u30c1\u30f3\u30b0\u6848\u4ef6\u3092\u63d0\u6848\u3002<\/strong><strong>\u5e02\u5834\u7d71\u8a08\u3084\u5358\u4fa1\u76f8\u5834\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u53e3\u30b3\u30df\u3082\u7121\u6599\u3067\u95b2\u89a7\u53ef\u80fd\u306a\u305f\u3081\u3001\u672c\u696d\u3092\u7d9a\u3051\u306a\u304c\u3089\u52b9\u7387\u7684\u306b\u9ad8\u5358\u4fa1\u306e\u526f\u696d\u6848\u4ef6\u3092\u63a2\u305b\u307e\u3059\u3002<a href=\"http:\/\/msm.to\/2ULVG5u\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9<\/a><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+61C2P\" rel=\"nofollow\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"120\" height=\"60\" alt=\"\" src=\"https:\/\/www29.a8.net\/svt\/bgt?aid=250928846375&amp;wid=001&amp;eno=01&amp;mid=s00000018714001014000&amp;mc=1\" \/><\/a> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www14.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" \/> <strong><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+5YJRM\" target=\"_blank\" rel=\"noopener\">IT\u30d7\u30ed\u30d1\u30fc\u30c8\u30ca\u30fc\u30ba<\/a><\/strong><\/td>\n<td>\n<p><strong>\u90312\u301c3\u65e5\u304b\u3089\u50cd\u3051\u308b\u67d4\u8edf\u306a\u6848\u4ef6\u304c\u696d\u754c\u30c8\u30c3\u30d7\u30af\u30e9\u30b9\u306e\u8c4a\u5bcc\u3055\u3092\u8a87\u308b\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3002<\/strong><strong>\u30a8\u30f3\u30c9\u76f4\u5951\u7d04\u306e\u305f\u3081\u9ad8\u5358\u4fa1\u3067\u3001\u90313\u65e5\u7a3c\u50cd\u3067\u3082\u5341\u5206\u306a\u5831\u916c\u3092\u5f97\u3089\u308c\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u3084\u6642\u9593\u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u306a\u6848\u4ef6\u3082\u591a\u6570\u3002\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30fb\u30d9\u30f3\u30c1\u30e3\u30fc\u4e2d\u5fc3\u3067\u3001\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u3092\u4f7f\u3063\u305f\u9b45\u529b\u7684\u306a\u6848\u4ef6\u304c\u63c3\u3063\u3066\u3044\u307e\u3059\u3002\u5c02\u5c5e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u6848\u4ef6\u7d39\u4ecb\u304b\u3089\u5951\u7d04\u4ea4\u6e09\u307e\u3067\u30b5\u30dd\u30fc\u30c8\u3002\u5229\u7528\u4f01\u696d2,000\u793e\u4ee5\u4e0a\u306e\u5b9f\u7e3e\u3002<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+5YJRM\" target=\"_blank\" rel=\"noopener\">IT\u30d7\u30ed\u30d1\u30fc\u30c8\u30ca\u30fc\u30ba<\/a><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BYLJL\" rel=\"nofollow\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"100\" height=\"60\" alt=\"\" src=\"https:\/\/www21.a8.net\/svt\/bgt?aid=251019989646&amp;wid=001&amp;eno=01&amp;mid=s00000017868002009000&amp;mc=1\" \/><\/a> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www16.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" \/> <strong> <a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BWVTE\" target=\"_blank\" rel=\"noopener\">Midworks<\/a> <\/strong><\/td>\n<td><strong>10,000\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u3092\u4fdd\u6709\u3057\u3001\u90313\u65e5\u301c\u30fb\u30d5\u30eb\u30ea\u30e2\u30fc\u30c8\u306a\u3069\u67d4\u8edf\u306a\u50cd\u304d\u65b9\u306b\u5bfe\u5fdc\u3002\u9ad8\u5358\u4fa1\u6848\u4ef6\u304c\u8c4a\u5bcc\u3067\u3001\u5831\u916c\u4fdd\u969c\u5236\u5ea6\uff0860%\uff09\u3084\u4fdd\u967a\u6599\u8ca0\u62c5\uff0850%\uff09\u306a\u3069\u6b63\u793e\u54e1\u4e26\u307f\u306e\u624b\u539a\u3044\u798f\u5229\u539a\u751f\u304c\u7279\u5fb4\u3002\u901a\u52e4\u4ea4\u901a\u8cbb\uff08\u67083\u4e07\u5186\uff09\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u8cbb\u7528\uff08\u67081\u4e07\u5186\uff09\u306e\u652f\u7d66\u306b\u52a0\u3048\u3001\u30ea\u30ed\u30af\u30e9\u30d6\u30fbfreee\u304c\u7121\u6599\u5229\u7528\u53ef\u80fd\u3002\u975e\u516c\u958b\u6848\u4ef680%\u4ee5\u4e0a\u3001\u652f\u6255\u3044\u30b5\u30a4\u30c820\u65e5\u3067\u5b89\u5fc3\u3057\u3066\u7a3c\u50cd\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BWVTE\" target=\"_blank\" rel=\"noopener\">Midworks<\/a><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9 20\u4e07\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u304b\u3089\u3001\u526f\u696d\u306b\u6700\u9069\u306a\u30ea\u30e2\u30fc\u30c8\u30fb\u90313\u301c\u306e\u6848\u4ef6\u3092\u4e00\u62ec\u691c\u7d22\u3067\u304d\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3002\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u767b\u9332\u3067AI\u30b9\u30ab\u30a6\u30c8\u304c\u81ea\u52d5\u7684\u306b\u30de\u30c3\u30c1\u30f3\u30b0\u6848\u4ef6\u3092\u63d0\u6848\u3002\u5e02\u5834\u7d71\u8a08\u3084\u5358\u4fa1\u76f8\u5834\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u53e3\u30b3\u30df\u3082\u7121\u6599 [&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-43420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column"],"views":105,"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\/43420","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=43420"}],"version-history":[{"count":0,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts\/43420\/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=43420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/categories?post=43420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/tags?post=43420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}