> For the complete documentation index, see [llms.txt](https://docs.skydeck.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skydeck.ai/zh-cn/genstudio-workspace/tools/pair-programmer/example-python-script-assistance.md).

# 示例 – Python 脚本辅助

在这个示例中，我们请求配对程序员帮助解决一个与大型 CSV 文件相关的 Python 脚本问题。

<figure><img src="/files/SUMZazBsOuHvNUDoA40u" alt="配对程序员输入"><figcaption></figcaption></figure>

该工具需要一秒钟来分析您的提示。每个响应都是定制的，因此没有提示会有完全相同的输出。对于这个提示，配对程序员首先列出了重申我们所要求的需求。

<figure><img src="/files/J1fgxRQNaD5QLTGL7tjE" alt="配对程序员输出 1"><figcaption></figcaption></figure>

有时您可能会请求一个不存在的解决方案。配对程序员可能会告知您是否能够提供适当的答案，以及该工具将如何回答您的提示。

<figure><img src="/files/EM2D0dgNwEbuuIqMUErt" alt="配对程序员输出 2"><figcaption></figcaption></figure>

对于我们的 Python 脚本提示，配对程序员正在解释我们可以修改脚本的不同方法，并附上代码示例。

<figure><img src="/files/fJm60yDaX7YtghKwKrBs" alt="配对程序员输出 3"><figcaption></figcaption></figure>

配对程序员还可能向我们提供一些后续问题，以便 AI 能够理解您情况的具体需求。然后，您可以询问这些问题以请求进一步的帮助。

<figure><img src="/files/f3sF9Ll7CMFABgQoYjwF" alt="配对程序员输出 4"><figcaption></figcaption></figure>

配对程序员随后提供更适合您需求的更新策略。可能会有更多的后续问题。随着您回答更多问题并提供进一步的信息，您的输出将会更加具体。配对程序员会自动理解每个额外查询的上下文。

<figure><img src="/files/BzDOYTYbdy4Yzkw1Y3pz" alt="配对程序员输出 5"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.skydeck.ai/zh-cn/genstudio-workspace/tools/pair-programmer/example-python-script-assistance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
