turtlewidth = num = x1 = [(-)(-+width*num)]
y1 = [(-)(--width*num)]
t = turtle.Pen()
t.speed()
i ():
t.penup()
t.goto(x1[][]x1[][]-*i)
t.pendown()
t.goto(x1[][]x1[][]-*i)
i ():
t.penup()
t.goto(y1[][] + * iy1[][])
t.pendown()
t.goto(y1[][] + * iy1[][])
t.hideturtle() turtle.done()
老师:这几行代码搞不懂啊
x1 = [(-400,400),(-400+width*num,400)]
y1 = [(-400,400),(-400,400-width*num)]
t.goto(x1[0][0],x1[0][1]-30*i)
t.goto(x1[1][0],x1[1][1]-30*i)
t.goto(y1[0][0] + 30 i, y1[0][1])
t.goto(y1[1][0] + 30 i, y1[1][1])