本文主要是介绍一个笨办法 ,画嵌套奥运五环。,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
# 绘制奥运五环
import turtle# 设置笔尖
turtle.width(10)# 画第一个圆
turtle.color("blue")
#turtle.circle(50)
turtle.circle(50, -340)# 画第四个圆
turtle.color("yellow")
turtle.penup()
turtle.goto(77, -50)
turtle.pendown()
turtle.circle(50,160)
turtle.circle(50,-330)# 画第二个圆
turtle.color("black")
turtle.penup()
turtle.goto(100, 95)
turtle.pendown()
turtle.circle(50,60)
turtle.circle(50,-250)
turtle.color("black")
turtle.circle(50,-10)
turtle.color("black")
turtle.circle(50,-80)# 画第三个圆
turtle.color("red")
turtle.penup()
turtle.goto(200, 20)
turtle.pendown()
turtle.circle(50,50)
turtle.circle(50,-60)
turtle.circle(50,340)# 画第五个圆
turtle.color("green")
turtle.penup()
turtle.goto(131, 0)
turtle.pendown()
turtle.circle(50,-60)
turtle.circle(50,249)
turtle.color("red")
turtle.circle(50,10)
turtle.color("green")
turtle.circle(50,75)turtle.penup()
turtle.goto(60, -90)
turtle.write("同一个世界,同一个梦想",font=("华文行楷", 15, "italic"))
这篇关于一个笨办法 ,画嵌套奥运五环。的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!