Pythonの勉強を続けています。 今回は👉 getter を学びました。 実はこれ、 👉 すでに使っていた機能 でもあります。 getterとは? 👉 値を取り出すときに使う仕組み です。 Pythonでは主に 👉 @property を使って実現します。 普通の取得 class Person:def __init__(self, name):self.name = namep1 = Person("Taro")print(p1.name) 👉 普通に取得できる getter(@property)を使う class Person: def __init__(self, name): self…