擅长:python、mysql、java
<p>你可以这样做:</p>
<pre><code>import turtle
turtle.penup()
for i in range(1, 500, 50):
turtle.right(90) # Face South
turtle.forward(i) # Move one radius
turtle.right(270) # Back to start heading
turtle.pendown() # Put the pen back down
turtle.circle(i) # Draw a circle
turtle.penup() # Pen up while we go home
turtle.home() # Head back to the start pos
</code></pre>
<p>它创建了下面的图片:</p>
<p><img src="https://i.stack.imgur.com/NvdK4.png" alt="enter image description here"/></p>
<p>基本上,它将海龟向下移动一个半径长度,以保持所有圆的中心点在同一点上。</p>