# 09.ดอกไม้หลายแฉก2

{% code lineNumbers="true" fullWidth="true" %}

```python
from turtle import *  # นำเข้าฟังก์ชันทั้งหมดจากโมดูล turtle
pensize(3)  # ตั้งค่าความหนาของปากกาเป็น 3 หน่วย
pencolor("yellow")  # ตั้งค่าสีของเส้นปากกาเป็นสีเหลือง
begin_fill()  # เริ่มต้นการเติมสีภายในรูปร่างที่วาด
fillcolor("purple")  # ตั้งค่าสีเติมภายในเป็นสีม่วง
for i in range(24):  # เริ่มต้นลูปเพื่อวาดรูปร่าง 24 ครั้ง
    fd(100)  # เคลื่อนที่ไปข้างหน้า 100 หน่วย
    lt(60)  # หมุนกระดองเต่าไปทางซ้าย 60 องศา
    fd(50)  # เคลื่อนที่ไปข้างหน้า 50 หน่วย
    lt(180-60)  # หมุนกระดองเต่าไปทางซ้าย 120 องศา (180 - 60)
    fd(50)  # เคลื่อนที่ไปข้างหน้า 50 หน่วย
    lt(60)  # หมุนกระดองเต่าไปทางซ้าย 60 องศา
    fd(100)  # เคลื่อนที่ไปข้างหน้า 100 หน่วย
    lt(45)  # หมุนกระดองเต่าไปทางซ้าย 45 องศา
end_fill()  # สิ้นสุดการเติมสีภายในรูปร่าง
mainloop()  # ทำให้หน้าจอวาดภาพยังคงเปิดอยู่จนกว่าจะปิดด้วยการคลิก
```

{% endcode %}

<figure><img src="https://1059722861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWAMRQLhtfzfy8yv80Se5%2Fuploads%2FJPGOYNMzkJz9GRA5X4sP%2F1-4.png?alt=media&#x26;token=09f3a843-fc70-491b-991c-40a52b3d03f4" alt=""><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://krootee.gitbook.io/python-turtle/1.example01-10/09.-2.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.
