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.
から継承するカスタム マッピング クラスを作成しましたcollections.Mapping。インスタンスのデータが別のマッピング オブジェクトと等しいかどうかをテストする簡単な方法はありますdictか?
collections.Mapping
dict
もちろん。この比較を実行する書き込み__eq__および__ne__メソッド。
__eq__
__ne__