import turtle as t

t.setup(800,600,0,0,)

t.pensize(2)

t.speed(1)

t.color("purple")

t.shape("turtle")

a=input("请输入任意1-10以内的数值:")

a=eval(a)   #红色部分可以改成a=5

for i in range(50):

   a=a+10

   t.left(90)

   t.fd(a)

t.done()

  用Turtle画正螺旋线



相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2021-07-12
相关资源
相似解决方案