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