class Person(object):
    def __init__(self, name: str = None, age: int = 0):
        self.name = name
        if age < 0:
            self.age = 0
        else:
            self.age = age 
            
    # 判断两个person对象相等的条件
    def __eq__(self, obj):
        return self.name == obj.name and self.age == obj.age
77829cfc8961f6a075b053a652914b86bc811704
<mask token>

class Person(object):
    <mask token>
    <mask token>

class Person(object):
    <mask token>

    def __eq__(self, obj):
        return self.name == obj.name and self.age == obj.age

class Person(object):

    def __init__(self, name: str=None, age: int=0):
        self.name = name
        if age < 0:
            self.age = 0
        else:
            self.age = age

    def __eq__(self, obj):
        return self.name == obj.name and self.age == obj.age

class Person(object):
    def __init__(self, name: str = None, age: int = 0):
        self.name = name
        if age < 0:
            self.age = 0
        else:
            self.age = age 
            
    # 判断两个person对象相等的条件
    def __eq__(self, obj):
        return self.name == obj.name and self.age == obj.age