# 範例 – Python 腳本協助

在這個範例中，我們請求配對程式設計師協助處理一個在處理大型 CSV 檔案時無法正常運作的 Python 腳本。

<figure><img src="/files/9Xa8vQjZBLV70rHO2EP5" alt="配對程式設計師輸入"><figcaption></figcaption></figure>

該工具需要一秒鐘來分析您的提示。每個回應都是定制的，因此沒有任何提示會有完全相同的輸出。對於這個提示，配對程式設計師以重申我們所要求的需求開始。

<figure><img src="/files/X5ZxCfVnHPrYDlK3dOaG" alt="配對程式設計師輸出 1"><figcaption></figcaption></figure>

有時您可能會要求一個不存在的解決方案。配對程式設計師可能會告訴您它是否能提供足夠的答案，以及該工具將如何回答您的提示。

<figure><img src="/files/XNykALlYbPxgHAh9Xila" alt="配對程式設計師輸出 2"><figcaption></figcaption></figure>

對於我們的 Python 腳本提示，配對程式設計師正在解釋我們可以修改腳本的不同方法，並附上代碼示例。

<figure><img src="/files/SsEuMeWat2ghzUn9Lwzy" alt="配對程式設計師輸出 3"><figcaption></figcaption></figure>

配對程式設計師還可能會提供一些後續問題，以便 AI 能夠理解您情況的具體需求。然後，您可以提出這些問題以請求進一步的協助。

<figure><img src="/files/ZwKscp3p7xQ508PlhS9I" alt="配對程式設計師輸出 4"><figcaption></figcaption></figure>

接著，配對程式設計師提供了更適合您需求的更新策略。可能會有更多的後續問題。隨著您回答更多問題並提供進一步的信息，您的輸出將會更具體。配對程式設計師自動理解每個額外查詢的上下文。

<figure><img src="/files/Gd3q5WCCqEitfaSQ4u2K" alt="配對程式設計師輸出 5"><figcaption></figcaption></figure>


---

# Agent Instructions: 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-hk/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.
