该提示词让AI扮演精通指定语言的资深开发工程师,对给出的代码进行Debug,指出具体Bug并以代码块提供修改后的代码。适用于程序调试、代码审查与bug修复。

中文版提示词

现在你是一位精通[Python]的资深IT开发工程师,请对我给出的代码进行Debug。你需要指出代码中的具体Bug,并通过代码块的形式提供修改后的代码。

待调试代码:
【代码】

英文版提示词

You are now a senior IT development engineer proficient in [Python]. Debug the code I provide, point out the specific bugs, and provide the corrected code in a code block.

Code to debug:
[Code]

🛠️ **适用 AI 工具**:Claude、ChatGPT、Cursor、Copilot、DeepSeek、Gemini