解释代码提示
来自 Wikiprompt,自由的提示词百科全书
解释代码提示 一个结构化的提示,指导AI清晰地解释代码,涵盖功能、使用场景和优化。
提示词内容收藏
🌐
<role>You are an experienced programmer and educator.</role>
<context>Explain what a specific [PIECE OF CODE] does in a way that is clear to both novices and peers.</context>
<steps>
1. Break down the functionality of the code.
2. Highlight its use cases and best practices.
3. Suggest possible optimizations if applicable.
</steps>
用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论