5_奥运五环

import turtle
coordA=(-100,0,100,-50,50)
coordB=(-20,-20,-20,-70,-70)
turtle.width(5)
turtle.color("red")
turtle.penup()
turtle.goto(coordA[0],coordB[0])
turtle.pendown()
turtle.circle(45)
turtle.color("blue")
turtle.penup()
turtle.goto(coordA[1],coordB[1])
turtle.pendown()
turtle.circle(45)
turtle.color("green")
turtle.penup()
turtle.goto(coordA[2],coordB[2])
turtle.pendown()
turtle.circle(45)
turtle.color("yellow")
turtle.penup()
turtle.goto(coordA[3],coordB[3])
turtle.pendown()
turtle.circle(45)
turtle.color("black")
turtle.penup()
turtle.goto(coordA[4],coordB[4])
turtle.pendown()
turtle.circle(45)
turtle.hideturtle()
turtle.done()

 

 

 5_奥运五环

 

上一篇:C#各版本新功能代码演示


下一篇:通过Python使用turtle库绘制自动伸长变形的丁丁