讨论

Contract-Based Email Validator Prompt

来自 Wikiprompt,自由的提示词百科全书

Millie Marconi

2026年2月10日

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 工具中。

为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。

参考资料

分类:coding| twitter| python| email-validation

讨论