# 14.วาดรูปเลขเก้าไทย

```python
// Some code
from turtle import *	#นำเข้าโมดูล turtle ทั้งหมด เพื่อใช้ในการวาดกราฟิก
pensize(20)		#กำหนดความหนาของปากกาเป็น 20 หน่วย
pencolor('red')		#กำหนดสีของปากกาเป็นสีแดง
lt(180)			#หมุนหัวปากกาทางซ้าย 180 องศา
circle(-30)		#วาดวงกลมเต็ม (360 องศา) โดยใช้รัศมี -30 หน่วย (วาดทวนเข็มนาฬิกา)
circle(-100,250)	#วาดส่วนหนึ่งของวงกลมโดยใช้รัศมี -100 หน่วย (ทวนเข็มนาฬิกา) และหมุน 250 องศา
circle(240,45)		#วาดส่วนหนึ่งของวงกลมโดยใช้รัศมี 240 หน่วย (ตามเข็มนาฬิกา) และหมุน 45 องศา
lt(180)			#หมุนหัวปากกาทางซ้าย 180 องศา
circle(-240,50)		#วาดส่วนหนึ่งของวงกลมโดยใช้รัศมี -240 หน่วย (ทวนเข็มนาฬิกา) และหมุน 50 องศา
circle(-30,180)		#วาดครึ่งวงกลม (180 องศา) โดยใช้รัศมี -30 หน่วย (ทวนเข็มนาฬิกา)
lt(90)			#หมุนหัวปากกาทางซ้าย 90 องศา
circle(100,90)		#วาดส่วนหนึ่งของวงกลมโดยใช้รัศมี 100 หน่วย (ตามเข็มนาฬิกา) และหมุน 90 องศา
mainloop()		#รักษาหน้าจอการวาดกราฟิกให้ค้างอยู่เพื่อให้เห็นผลลัพธ์

```

<figure><img src="/files/9DnEYK3Qry7X1mZ7LuL9" 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/2.example11-20/14..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.
