正方形螺旋线

from turtle import *
r=10
d=10
n=25
speed(100)
for i in range(2*n):
fd(r)
left(90)
fd(r)
left(90)
r+=d
done

posted @ 2024-10-14 10:52  xc3535231695  阅读(3)  评论(0编辑  收藏  举报