use “is” instead of __eq__ with python's “in”

后端 未结 0 1040
时光取名叫无心
时光取名叫无心 2020-12-29 16:39

I want to use Python\'s in with is rather than ==. Currently I achieve that with any:

class Person:
    de         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题