# 內置Python編輯器

## 內置Python編輯器

我們之前在介面介紹提過Kittenblock可以切換至Python模式，我們現在會詳細看看內置的Python編輯器。

![](https://kittenbothk.readthedocs.io/en/latest/_images/python1.png)

### 1. 自動翻譯

在編程區搭建的積木會實時地自動變為Python代碼。

![](https://kittenbothk.readthedocs.io/en/latest/_images/python2.png)

### 2. 手動翻譯

將當前編程區的積木翻譯成Python代碼。

![](https://kittenbothk.readthedocs.io/en/latest/_images/python3.png)

### 3. 編輯

打開或保存當前的Python代碼。

其他選項不需要理會。

![](https://kittenbothk.readthedocs.io/en/latest/_images/python4.png)

### 4. 運行/上載

運行程式或上載程式到硬件。

![](https://kittenbothk.readthedocs.io/en/latest/_images/python5.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/python6.png)


---

# 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://sharinghub.kittenbot.hk/programmingplatforms/kittenblock/an-zhuang-ban-kittenblock/features/kittenblock_function/kittenpython.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.
