用户:
GZYX_千灵千鸟查看:1 回复:1 评论:1 创建时间:2021-05-13T19:04:15
【作品展示】

【作品介绍】
单纯一火箭,呵呵
【作品源代码】
import turtle
import time
__Pen = turtle.Pen()
import turtle
__Pen.speed(0)
__Pen.pencolor("#ffffff")
turtle.bgcolor("#000000")
__Pen.penup()
__Pen.goto((-100), 200)
__Pen.pendown()
__Pen.right(225)
for __count in range(2):
__Pen.right(90)
__Pen.forward(100)
__Pen.fillcolor("#6600cc")
__Pen.begin_fill()
__Pen.right(135)
__Pen.forward(140)
__Pen.left(90)
__Pen.forward(200)
__Pen.left(90)
__Pen.forward(140)
__Pen.left(90)
__Pen.forward(200)
__Pen.end_fill()
__Pen.penup()
__Pen.goto(0, 100)
__Pen.pencolor("#33ff33")
__Pen.fillcolor("#ffff00")
__Pen.pendown()
__Pen.begin_fill()
__Pen.circle(30, steps=4)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-100), 0)
__Pen.pendown()
__Pen.fillcolor("#3366ff")
__Pen.begin_fill()
__Pen.left(120)
__Pen.forward(100)
__Pen.left(150)
__Pen.forward(325)
__Pen.left(152)
__Pen.forward(115)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-50), (-80))
__Pen.pendown()
__Pen.fillcolor("#ff9900")
__Pen.begin_fill()
__Pen.setheading((-90))
__Pen.forward(110)
__Pen.setheading(0)
__Pen.forward(40)
__Pen.setheading(90)
__Pen.forward(110)
__Pen.setheading(180)
__Pen.forward(40)
__Pen.end_fill()
__Pen.hideturtle()
__Pen.penup()
__Pen.fillcolor("#ff6600")
__Pen.begin_fill()
__Pen.goto((-100), (-80))
__Pen.pendown()
__Pen.setheading((-90))
__Pen.forward(70)
__Pen.setheading(0)
__Pen.forward(30)
__Pen.setheading(90)
__Pen.forward(70)
__Pen.setheading(180)
__Pen.forward(30)
__Pen.end_fill()
__Pen.hideturtle()
__Pen.penup()
__Pen.fillcolor("#ff6600")
__Pen.begin_fill()
__Pen.goto(10, (-80))
__Pen.pendown()
__Pen.setheading((-90))
__Pen.forward(70)
__Pen.setheading(0)
__Pen.forward(30)
__Pen.setheading(90)
__Pen.forward(70)
__Pen.setheading(180)
__Pen.forward(30)
__Pen.end_fill()
__Pen.hideturtle()
__Pen.penup()
__Pen.pencolor("#000000")
__Pen.fillcolor("#999999")
__Pen.begin_fill()
__Pen.goto((-100), (-50))
__Pen.pendown()
__Pen.setheading((-90))
__Pen.forward(20)
__Pen.setheading(0)
__Pen.forward(140)
__Pen.setheading(90)
__Pen.forward(20)
__Pen.setheading(180)
__Pen.forward(140)
__Pen.end_fill()
__Pen.penup()
__Pen.fillcolor("#666666")
__Pen.begin_fill()
__Pen.goto((-100), (-70))
__Pen.pendown()
__Pen.setheading((-90))
__Pen.forward(5)
__Pen.setheading(0)
__Pen.forward(140)
__Pen.setheading(90)
__Pen.forward(5)
__Pen.setheading(180)
__Pen.forward(140)
__Pen.end_fill()
__Pen.goto((-100), (-75))
for __count in range(10):
__Pen.setheading(90)
__Pen.forward(10)
__Pen.setheading((-90))
__Pen.forward(10)
__Pen.setheading(0)
__Pen.forward(14)
__Pen
turtle.done()
import turtle
#开始进入Python的世界
w = turtle.Pen()
w.speed(50)
turtle.bgcolor("#000000")
w.penup()
w.pencolor("#cccccc")
w.goto(0, (-700))
w.pendown()
w.pensize(250)
w.circle(200)
w.penup()
w.pencolor("#3333ff")
w.pensize(19)
w.goto((-50), (-200))
w.pendown()
w.circle(20, steps=3)
w.penup()
w.goto(50, (-200))
w.pendown()
w.circle(20, steps=3)
w.penup()
w.goto(50, (-200))
w.penup()
w.pencolor("#ffffff")
w.sety((-160))
w.setx(90)
w.pensize(1)
w.left(45)
w.pendown()
w.begin_fill()
w.fillcolor("#ffffff")
w.circle(120, steps=4)
w.end_fill()
w.penup()
w.sety((-40))
w.setx(90)
w.pensize(1)
w.pendown()
w.begin_fill()
w.fillcolor("#ffffff")
w.circle(118, steps=4)
w.end_fill()
w.penup()
w.left(135)
w.sety(278)
w.setx(8)
w.pensize(1)
w.pendown()
w.begin_fill()
w.fillcolor("#ffffff")
w.circle(100, steps=3)
w.end_fill()
w.penup()
w.goto((-70), (-30))
w.pencolor("#ff0000")
w.pensize(30)
w.write('中国航天', font = ('Arial', 30, 'bold'))
w.penup()
w.goto((-80), (-30))
w.pencolor("#ff0000")
w.penup()
w.sety(0)
w.setx((-124))
w.pensize(1)
w.left(90)
w.pendown()
w.begin_fill()
w.fillcolor("#ff6600")
w.circle(30, steps=3)
w.end_fill()
w.penup()
w.sety(0)
w.setx(137)
w.pensize(1)
w.right(180)
w.pendown()
w.begin_fill()
w.fillcolor("#ff6600")
w.circle(30, steps=3)
w.end_fill()
w.penup()
w.goto(300, 200)
w.pendown()
w.begin_fill()
w.fillcolor("#cc66cc")
w.circle(50)
w.end_fill()
w.penup()
w.goto(350, (-200))
w.pendown()
w.begin_fill()
w.fillcolor("#33ff33")
w.circle(50)
w.end_fill()
w.penup()
w.goto((-350), (-150))
w.pendown()
w.begin_fill()
w.fillcolor("#ffcccc")
w.circle(50)
w.end_fill()
w.penup()
w.goto((-350), 200)
w.pendown()
w.begin_fill()
w.fillcolor("#ff6600")
w.circle(180)
w.end_fill()
w.penup()
w.goto(550, 135)
w.pendown()
w.begin_fill()
w.fillcolor("#66ffff")
w.circle(135)
w.end_fill()
w.penup()
w.goto(30, 30)
w.pencolor("#ff0000")
w.right(45)
w.begin_fill()
w.fillcolor("#ff0000")
w.circle(50, steps=4)
w.end_fill()
w.penup()
w.goto(80, 30)
w.pencolor("#ff0000")
w.begin_fill()
w.fillcolor("#ff0000")
w.circle(50, steps=4)
w.end_fill()
w.penup()
w.goto((-30), 54)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(30)
w.right(145)
w.end_fill()
w.penup()
w.goto((-8), 35)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(15)
w.right(145)
w.end_fill()
w.penup()
w.goto(3, 55)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(15)
w.right(145)
w.end_fill()
w.penup()
w.goto(4, 73)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(15)
w.right(145)
w.end_fill()
w.penup()
w.goto((-15), 86)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(15)
w.right(145)
w.end_fill()
w.hideturtle()
time.sleep(5)
w = turtle.Pen()
w.speed(50)
turtle.bgcolor("#000000")
w.penup()
w.pencolor("#cccccc")
w.goto(0, (-700))
w.pendown()
w.pensize(250)
w.circle(200)
w.penup()
w.pencolor("#3333ff")
w.pensize(19)
w.goto((-50), (-200))
w.pendown()
w.circle(20, steps=3)
w.penup()
w.goto(50, (-200))
w.pendown()
w.circle(20, steps=3)
w.penup()
w.goto(50, (-200))
w.penup()
w.pencolor("#ffffff")
w.sety((-160))
w.setx(90)
w.pensize(1)
w.left(45)
w.pendown()
w.begin_fill()
w.fillcolor("#ffffff")
w.circle(120, steps=4)
w.end_fill()
w.penup()
w.sety((-40))
w.setx(90)
w.pensize(1)
w.pendown()
w.begin_fill()
w.fillcolor("#ffffff")
w.circle(118, steps=4)
w.end_fill()
w.penup()
w.left(135)
w.sety(278)
w.setx(8)
w.pensize(1)
w.pendown()
w.begin_fill()
w.fillcolor("#ffffff")
w.circle(100, steps=3)
w.end_fill()
w.penup()
w.goto((-70), (-30))
w.pencolor("#ff0000")
w.pensize(30)
w.write('中国航天', font = ('Arial', 30, 'bold'))
w.penup()
w.goto((-80), (-30))
w.pencolor("#ff0000")
w.penup()
w.sety(0)
w.setx((-124))
w.pensize(1)
w.left(90)
w.pendown()
w.begin_fill()
w.fillcolor("#ff6600")
w.circle(30, steps=3)
w.end_fill()
w.penup()
w.sety(0)
w.setx(137)
w.pensize(1)
w.right(180)
w.pendown()
w.begin_fill()
w.fillcolor("#ff6600")
w.circle(30, steps=3)
w.end_fill()
w.penup()
w.goto(300, 200)
w.pendown()
w.begin_fill()
w.fillcolor("#cc66cc")
w.circle(50)
w.end_fill()
w.penup()
w.goto(350, (-200))
w.pendown()
w.begin_fill()
w.fillcolor("#33ff33")
w.circle(50)
w.end_fill()
w.penup()
w.goto((-350), (-150))
w.pendown()
w.begin_fill()
w.fillcolor("#ffcccc")
w.circle(50)
w.end_fill()
w.penup()
w.goto((-350), 200)
w.pendown()
w.begin_fill()
w.fillcolor("#ff6600")
w.circle(180)
w.end_fill()
w.penup()
w.goto(550, 135)
w.pendown()
w.begin_fill()
w.fillcolor("#66ffff")
w.circle(135)
w.end_fill()
w.penup()
w.goto(30, 30)
w.pencolor("#ff0000")
w.right(45)
w.begin_fill()
w.fillcolor("#ff0000")
w.circle(50, steps=4)
w.end_fill()
w.penup()
w.goto(80, 30)
w.pencolor("#ff0000")
w.begin_fill()
w.fillcolor("#ff0000")
w.circle(50, steps=4)
w.end_fill()
w.penup()
w.goto((-30), 54)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(30)
w.right(145)
w.end_fill()
w.penup()
w.goto((-8), 35)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(15)
w.right(145)
w.end_fill()
w.penup()
w.goto(3, 55)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(15)
w.right(145)
w.end_fill()
w.penup()
w.goto(4, 73)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(15)
w.right(145)
w.end_fill()
w.penup()
w.goto((-15), 86)
w.pencolor("#ffff66")
w.begin_fill()
w.fillcolor("#ffff00")
for __count in range(5):
w.pendown()
w.forward(15)
w.right(145)
w.end_fill()
w.hideturtle()
time.sleep(5)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn