1396 | میخک | علم و فناوری, پایتون, کامپیوتر و فناوری اطلاعات | 0 دیدگاه
برای رسم مربع با turtle یا لاکپشت می توانید از کد زیر استفاده کنید:
ابتدا کتابخانه ی turtle را ایمپورت کنید
import turtle t = turtle.Pen() t.forward(90) t.left(90) t.forward(90) t.left(90) t.forward(90) t.left(90) t.forward(90) t.left(90) دیدگاهتان را بنویسید لغو پاسخ We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy.نام * ایمیل * وب سایت دیدگاه * Δ
import turtle t = turtle.Pen() t.forward(90) t.left(90) t.forward(90) t.left(90) t.forward(90) t.left(90) t.forward(90) t.left(90)
We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy.
نام *
ایمیل *
وب سایت
دیدگاه *
Δ