Giới thiệu sản phẩm
import turtle
t = turtle.Turtle()
screen = turtle.Screen()
t.pensize(10)
t.speed(11)
def square():
for i in range(4):
t.forward(100)
t.right(90)
def circle():
t.circle(100)
def rec():
for i in range(2):
t.forward(180)
t.right(90)
t.forward(120)
t.right(90)
def tri():
for i in range(3):
t.forward(120)
t.right(120)
def fiv():
for i in range(5):
t.forward(100)
t.right(72)
def si():
for i in range(6):
t.forward(90)
t.right(60)
screen.onkey(square, "3")
screen.onkey(circle, "1")
screen.onkey(rec, "4")
screen.onkey(tri, "2")
screen.onkey(fiv, "5")
screen.onkey(si, "6")
screen.listen()
screen.mainloop()
Hình ảnh sản phẩm

Sản phẩm cùng tác giả
Sản phẩm liên quan
Không có sản phẩm nào
Đăng nhập để tham gia bình luận