import turtle
#第一个圈
turtle.width(10) #画笔宽度10
turtle.color("black") #画笔的颜色
turtle.circle(50) #半径50的圆
#第二个圈
turtle.penup() #抬笔
turtle.goto(110,0) #去到坐标(110,0)
turtle.pendown() #放笔
turtle.width(10)
turtle.color("red")
turtle.circle(50)
#第三个圈
turtle.penup()
turtle.goto(-110,0)
turtle.pendown()
turtle.width(10)
turtle.color("blue")
turtle.circle(50)
#第四个圈
turtle.penup()
turtle.goto(-60,-60)
turtle.pendown()
turtle.width(10)
turtle.color("orange")
turtle.circle(50)
#第五个圈
turtle.penup()
turtle.goto(60,-60)
turtle.pendown()
turtle.width(10)
turtle.color("green")
turtle.circle(50)
turtle.down()
turtle.exitonclick() #让画面不自动返回。
标签:turtle,10,五环,python,50,width,circle,color From: https://www.cnblogs.com/36zy/p/17378243.html