Set of custom class strange behavior with in operator

前端 未结 0 780
遥遥无期
遥遥无期 2021-01-01 00:49

Take this class:

class Element(object):
    __slots__ = [\'x\', \'y\']
    def __init__(self, x, y):
        self.x = x
        self.y = y

    @property
             


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