该提示词用于在保证代码计算逻辑不变的前提下,修改Python源代码以适配新的数据格式,并将输出结果直接写入指定Excel文件。使用时替换"数据名称""数据位置""excel文件位置",并粘贴Excel数据和源代码,AI会调整代码使其能正确绘图和分析,适合科研数据处理和脚本复用。

中文版提示词

我现在已将"数据名称"按以下格式整理好,放在"数据位置",数据格式如下:
(复制粘贴Excel数据)
这是源代码,我需要用它来绘图和分析结果。请你在保证代码计算逻辑不变的条件下,帮我修改它以得到符合我数据格式的研究结果,并将输出结果直接写入"excel文件位置"。源码如下:
(复制粘贴源代码)

英文版提示词

I have organized the "data name" in the following format and placed it at "data location". The data format is as follows:
(copy and paste Excel data)
This is the source code I need to use for plotting and analyzing results. Please modify it to produce research results matching my data format while keeping the computational logic unchanged, and write the output directly to "excel file location". The source code is as follows:
(copy and paste source code)

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