暂无描述

Auto.py 790B

123456789101112131415161718192021222324252627282930313233343536
  1. # Auto Zeichnung mit Turtte
  2. import turtle
  3. import math
  4. R = 40
  5. turtle.up()
  6. turtle.goto(-200,-50)
  7. turtle.down()
  8. turtle.forward(70) #1
  9. turtle.right(90)
  10. turtle.circle(R,-180) #2
  11. turtle.right(90)
  12. dp = 120*math.sqrt(2)-30
  13. turtle.forward(dp) #3
  14. turtle.right(90)
  15. turtle.circle(R,-180) #4
  16. turtle.right(90)
  17. turtle.forward(100) #5
  18. turtle.left(135)
  19. turtle.forward(120+90*math.sqrt(2)) #6
  20. turtle.circle(120,135) #7
  21. turtle.right(90)
  22. turtle.circle(90,90) #8
  23. turtle.up()
  24. turtle.goto(-128,-50)
  25. turtle.down()
  26. turtle.circle(38)
  27. turtle.up()
  28. turtle.goto(-200+150+dp+2,-50)
  29. turtle.down()
  30. turtle.circle(38)