(self, email)
return email
验证邮箱
        :param email:
        :return:
验证邮箱
        :param email:
        :return:
验证邮箱 : param email : : return :
def validate_email(self, email):
        """
        验证邮箱
        :param email:
        :return:
        """

        # 验证邮箱是否合法
        if not re.match(REGEX_EMAIL, email):
            raise serializers.ValidationError("邮箱格式错误")

        return email
def validate_email ( self , email ) : # 验证邮箱是否合法 if not re . match ( REGEX_EMAIL , email ) : raise serializers . ValidationError ( "邮箱格式错误") return email