Advertisement
plarmi

work10_6

May 25th, 2023
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. import turtle
  2. import math
  3. window = turtle.Screen()
  4. window.title(u"Черепаха по спирали!")
  5. turtle.shape("turtle")
  6. turtle.speed(0)
  7. # y - количество поворотов спирали
  8. # кривизну спирали можно изменять значением постоянного множиеля (5) в функции forward
  9. x = 0
  10. while True:
  11.     turtle.forward(x / 2 *  math.pi)
  12.     turtle.left(2 * math.pi)
  13.     x += 0.01
  14. window.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement