черепашка дз с домиком

mail@pastecode.io avatar
unknown
python
16 days ago
279 B
1
Indexable
Never
from turtle import *
from turtle import Turtle, Screen

def drag(i, j):
    tur.ondrag(None)
    tur.setheading(tur.towards(i, j))
    tur.goto(i, j)
    tur.ondrag(drag)

ws = Screen()

tur = Turtle('turtle')
tur.speed('fastest')

tur.ondrag(drag)

ws.mainloop()
Leave a Comment