> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/programmingplatforms/kittenblock/an-zhuang-ban-kittenblock/features/kittenblock_function/kittenpython.md).

# 內置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)
