重构代码以提高可读性
来自 Wikiprompt,自由的提示词百科全书
重构代码以提高可读性 一个提示,要求AI重构代码以提高可读性,同时保持功能不变,并解释所做的更改。
提示词内容收藏
🌐
Refactor this code to enhance readability without changing functionality. Simplify complex structures and use more descriptive variable names. Explain the changes and how they make the code clearer.
用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论