码迷,mamicode.com
首页 > 编程语言 > 详细

Python发射小心心

时间:2018-11-13 00:13:48      阅读:316      评论:0      收藏:0      [点我收藏+]

标签:color   eth   lan   .com   class   get   rtl   imp   click   

import turtle
turtle.setup(700,700)
turtle.pensize(15)
turtle.seth(270)
turtle.fd(80)
turtle.seth(0)
turtle.fd(120)
turtle.seth(270)
turtle.fd(100)
turtle.seth(90)
turtle.fd(100)
turtle.seth(180)
turtle.fd(120)
turtle.seth(225)
turtle.fd(160)
turtle.seth(45)
turtle.fd(160)
turtle.seth(90)
turtle.fd(80)
turtle.seth(0)
turtle.fd(110)
turtle.seth(-45)
turtle.fd(50)
turtle.seth(135)
turtle.fd(50)
turtle.seth(180)
turtle.fd(110)
turtle.seth(90)
turtle.fd(30)
turtle.seth(0)
turtle.fd(110)
turtle.seth(45)
turtle.fd(50)
turtle.seth(225)
turtle.fd(50)
turtle.seth(180)
turtle.fd(110)
turtle.seth(90)
turtle.fd(90)
turtle.seth(0)
turtle.circle(80,360)
turtle.seth(90)
turtle.penup()
turtle.fd(90)
turtle.seth(0)
turtle.fd(30)
turtle.seth(90)
turtle.pendown()
turtle.fd(10)
turtle.penup()
turtle.seth(180)
turtle.fd(60)
turtle.seth(270)
turtle.pendown()
turtle.fd(10)
turtle.pensize(10)
turtle.penup()
turtle.fd(40)
turtle.pendown()
turtle.seth(-60)
turtle.circle(45,125)
turtle.seth(-15)
turtle.penup()
turtle.fd(190)
turtle.seth(-90)
turtle.fd(80)
turtle.begin_fill()
turtle.pencolor("black")
turtle.fillcolor("red")
turtle.penup()
turtle.seth(135)
turtle.pendown()
turtle.circle(50,60)
turtle.penup()
turtle.seth(-135)
turtle.pendown()
turtle.circle(50,100)
turtle.fd(40)
turtle.penup()
turtle.seth(25)
turtle.pendown()
turtle.fd(40)
turtle.circle(50,120)
turtle.penup()
turtle.seth(-175)
turtle.pendown()
turtle.circle(34,76)
turtle.end_fill()
turtle.exitonclick()

点击此处查看视频

Python发射小心心

标签:color   eth   lan   .com   class   get   rtl   imp   click   

原文地址:https://www.cnblogs.com/zmq620/p/9949412.html

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