一个平平无奇的反向同心圆代码:#TangenentCircleDraw.py(同切圆)import turtlefrom random import choiceturtle.width(5)turtle.speed(10000)x=range(50,500,20)for i in range(100): for n in x: color=["red","blue","green","pink","purple","yellow"] color2=choice(color) turtle.fillcolor(color2) turtle.begin_fill() turtle.pencolor(color2) turtle.circle(n)#n是半径 turtle.end_fill() turtle.right(90) for n in x: color=["red","blue","green","pink","purple","yellow"] color2=choice(color) turtle.fillcolor(color2) turtle.begin_fill() turtle.pencolor(color2) turtle.circle(-n) turtle.end_fill()打出来有惊喜哦