Contract-Based Email Validator Prompt
来自 Wikiprompt,自由的提示词百科全书
Contract-Based Email Validator Prompt A structured prompt template for generating production-ready code with explicit goals, constraints, format, and failure criteria, tested against a simple prompt for better results.
提示词内容收藏
🌐
Generate Python function to validate email addresses.
GOAL: Process 50K emails/sec, 99.9% accuracy
CONSTRAINTS: No regex libraries, max 30 lines, Python 3.10+
FORMAT: Function + type hints + docstring + 5 test cases
FAILURE: If uses external libs OR lacks error handling OR runs >20ms per 1K emails
用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论