Python同心圆的绘制

在画布中央画40个半径差为30,最小半径为20的同心圆,颜色为绿色

for循环控制,然后你自己去试一下呗

import turtle

T = turtle.Turtle()
T.speed(0)
T.pencolor('green')
radius = 20

for _ in range(40):
    T.pd()
    T.circle(radius)
    T.up()
    T.goto(T.xcor(), T.ycor() - 30)
    radius += 30

turtle.done()