首页 > 其他 > 详细

玫瑰发

时间:2017-10-29 00:22:16      阅读:351      评论:0      收藏:0      [点我收藏+]
import turtle
turtle.reset()
turtle.speed(5)


turtle.begin_fill()
turtle.circle(6,180)
turtle.circle(30,75)
turtle.left(90)
turtle.circle(60,30)
turtle.fd(9)
turtle.circle(20,90)
turtle.right(180)
turtle.fd(45)
turtle.right(180)
turtle.fd(45)

turtle.right(140)
turtle.fd(30)
turtle.right(45)
turtle.fd(10)
turtle.right(180)
turtle.fd(10)
turtle.left(45)
turtle.fd(30)
turtle.right(40)

turtle.circle(20,30)
turtle.left(30)
turtle.fd(20)
turtle.left(30)
turtle.circle(150,20)
turtle.fd(10)
turtle.left(65)
turtle.fd(30)

turtle.left(30)
turtle.fd(105)
turtle.right(180)
turtle.fd(105)

turtle.fd(18)
turtle.left(125)
turtle.circle(95,100)
turtle.left(30)
turtle.circle(100,100)
turtle.left(120)
turtle.fd(18)
turtle.right(10)
turtle.fd(32)

turtle.color("red")
turtle.end_fill()
turtle.pencolor("black")

turtle.circle(110,60)



turtle.begin_fill()
turtle.circle(200,20)
turtle.circle(-300,20)
turtle.circle(400,20)
turtle.left(30)
turtle.circle(5,120)
turtle.left(30)
turtle.circle(-400,20)
turtle.circle(300,20)
turtle.circle(-200,21)
turtle.fillcolor("darkolivegreen")
turtle.end_fill()
turtle.penup()
turtle.left(180)
turtle.circle(200,20)
turtle.circle(-300,10)
turtle.left(100)
turtle.pendown()
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(-300,4)
turtle.left(60)
turtle.circle(-80,120)
turtle.circle(30,45)
turtle.right(160)
turtle.circle(30,45)
turtle.circle(-80,120)
turtle.right(103)
turtle.circle(-300,20)
turtle.end_fill()
turtle.penup()
turtle.left(180)
turtle.circle(300,7)
turtle.pendown()
turtle.left(90)
turtle.circle(200,5)
turtle.right(120)
turtle.penup()
turtle.fd(34)
turtle.pendown()
turtle.right(70)
turtle.circle(200,4)
turtle.left(52)
turtle.penup()
turtle.fd(98)
turtle.pendown()
turtle.left(50)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(-300,2)
turtle.left(60)
turtle.circle(-80,120)
turtle.circle(30,45)
turtle.right(160)
turtle.circle(30,45)
turtle.circle(-80,120)
turtle.right(103)
turtle.circle(-300,20)
turtle.end_fill()
turtle.penup()
turtle.left(180)
turtle.circle(300,7)
turtle.pendown()
turtle.left(90)
turtle.circle(200,5)
turtle.right(120)
turtle.penup()
turtle.fd(34)
turtle.pendown()
turtle.right(70)
turtle.circle(200,4)

技术分享

玫瑰发

原文:http://www.cnblogs.com/python2017yux/p/7748584.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!