码迷,mamicode.com
首页 > 其他好文 > 详细

绘制奥运大五环

时间:2019-11-02 23:45:12      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:绘制   pen   yellow   port   tle   pytho   rtl   turtle   red   

绘制奥运五环

# 绘制奥运五环
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("red")
turtle.circle(50)
turtle.penup()
turtle.goto(60,-50)
turtle.pendown()

turtle.color("yellow")
turtle.circle(50)
turtle.penup()
turtle.goto(180,-50)
turtle.pendown()

turtle.color("green")
turtle.circle(50)

绘制奥运大五环

标签:绘制   pen   yellow   port   tle   pytho   rtl   turtle   red   

原文地址:https://blog.51cto.com/innocence/2447194

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!