擅长:python、mysql、java
<p>您需要使用penup和pendown停止并开始绘制轨迹</p>
<pre><code>import turtle
t = turtle.Turtle()
x=0
y=0
z=0
a=-0
b=0
c=-0
d=0
e=0
while x < 100:
t.penup()
x=x-10
y=y+10
t.goto(x,y)
t.pendown()
z=z-10
a=a-10
t.goto(z,a)
b=b+10
c=c-10
t.goto(b,c)
d=d+10
e=e+10
t.goto(d,e)
t.setposition(x,y)
turtle.done()
</code></pre>