Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はDjangoを学んでおり、__init__()関数が特定のクラスからオブジェクトを構築するために使用されることを理解しています. ただし、クラス関数のないクラスコードもいくつか見られる__init__()ので、私の質問は、__init__()すべてのクラスに本当に必要な関数ですか? また、この機能に関する私の理解に問題がある場合は、修正してください。ありがとうございました。
__init__()