Python实现奥运五环
import turtle #导入模块
turtle.width(10) #设置画笔粗细
turtle.color ("blue")
turtle.circle(50) #画第一个圆
turtle.penup()
turtle.goto(120,0) #移动坐标
turtle.pendown()
turtle.color("black") #给画笔设置颜色
turtle.circle(50) #画第二个圆
turtle.penup() #抬笔
turtle.goto(240,0)
turtle.pendown() #落笔
turtle.color("yellow")
turtle.circle(50) #画第三个圆
turtle.penup()
turtle.goto(60,-50)
turtle.pendown()
turtle.color("red")
turtle.circle(50) #画第四个圆
turtle.penup()
turtle.goto(180,-50)
turtle.color("green")
turtle.pendown()
turtle.circle(50) #画第五个圆
效果图如下: