pythonはクラス外から任意のクラスメソッドを呼び出すと暗黙的に引数 self が渡されるため、クラスメソッドの引数1つ目に必ず self を取らなければならない、というルールがある。
Functions are the building blocks of Python programs. They let you write reusable code, reduce duplication, and make projects easier to maintain. In this guide, we’ll walk through all the ways you can ...