用户:
重见曙光查看:0 回复:1 评论:0 创建时间:2021-05-23T22:15:25
【作品展示】

【作品介绍】
1970年4月24日,中国第1颗人造地球卫星东方红1号发射成功,拉开了中国人探索宇宙奥秘、和平利用太空、造福人类的序幕。经过几代航天人的不懈努力,2003年10月15日,航天员杨利伟乘”神舟五号”飞船首次进入太空,实现了中华民族的千年飞天梦,此后,手持红旗漫步太空的翟志刚,巾帼不让须眉的刘洋,三次出征太空的景海鹏,让太空中有了越来越多的中国身影,面对星辰大海,中国人永不停步。向航天员致敬!!!
【作品源代码】
import random
import turtle
import time
q = turtle.Pen()
q.speed(10)
turtle.screensize(400,800)
q.pencolor("black")
q.pensize(3)
print("请把画布最大化!")
time.sleep(3)
#明信片框架
q.penup()
q.goto(800, 450)
q.pendown()
q.begin_fill()
q.fillcolor("#ffffcc")
q.goto(800,-450)
q.goto(-850,-450)
q.goto(-850,450)
q.goto(800, 450)
q.end_fill()
#图片框架
q.penup()
q.goto(0,300)
q.pendown()
q.begin_fill()
q.fillcolor("#000099")
q.goto(0, -300)
q.goto(-800,-300)
q.goto(-800,300)
q.goto(0, 300)
q.end_fill()
#喵框架
q.pencolor("red")
q.penup()
q.goto(-800, 400)
q.pendown()
i=0
while i<6:
t=0
while t<4:
q.forward(35)
q.right(90)
t+=1
q.penup()
q.forward(45)
q.pendown()
i+=1
#喵
q.pencolor("black")
q.penup()
q.goto(380, -400)
q.pendown()
q.write('喵:830001', font = ('Arial', 25, 'normal'))
#横线
q.penup()
q.goto(50, 150)
q.pendown()
q.pencolor("black")
i=0
while i<7:
q.pendown()
q.forward(700)
q.backward(700)
q.penup()
q.right(90)
q.forward(75)
q.left(90)
i+=1
#邮票
q.begin_fill()
q.fillcolor("sky blue")
q.pensize(1.5)
q.penup()
q.goto(575, 425)
q.pendown()
t=0
while t<25:
q.setheading(0)
q.left(60)
q.forward(7)
q.right(120)
q.forward(7)
t+=1
t=0
while t<17:
q.setheading(-90)
q.left(60)
q.forward(7)
q.right(120)
q.forward(7)
t+=1
t=0
while t<25:
q.setheading(180)
q.left(60)
q.forward(7)
q.right(120)
q.forward(7)
t+=1
t=0
while t<17:
q.setheading(90)
q.left(60)
q.forward(7)
q.right(120)
q.forward(7)
t+=1
q.end_fill()
#小月亮
q.penup()
q.goto(630, 370)
q.pendown()
q.pencolor("yellow")
q.dot(70)
q.penup()
q.goto(喵5, 380)
q.pendown()
q.pencolor("sky blue")
q.dot(68)
#小星星
i=0
while i<12:
xingx = random.randint(喵0,730)
xingy = random.randint(360,415)
q.penup()
q.goto(xingx,xingy)
q.pendown()
daxiao=int(random.randint(3,5))
colors = ['#ffffcc', '#ffff99', '#ffff33', '#ffff66', '#ffff00', '#ffcc00']
q.pencolor(colors[random.randint(0, 5)])
q.dot(daxiao)
i=i+1
#字
q.pencolor("black")
q.penup()
q.goto(605,310)
q.pendown()
q.write('China', font = ('Arial', 12, 'italic'))
q.penup()
q.setheading(0)
q.forward(65)
q.pendown()
q.write('中国邮政', font = ('Arial', 13, 'bold'))
q.penup()
q.goto(735,400)
q.pendown()
q.write('5', font = ('Arial', 13, 'normal'))
q.penup()
q.goto(735,387)
q.pendown()
q.write('分', font = ('Arial', 9, 'normal'))
# 地球
q.pencolor("#3366ff")
q.penup()
q.goto(-400,0)
q.pendown()
q.dot(300)
q.penup()
q.goto(-345, 140)
q.pendown()
q.right(21)
q.pensize(2)
q.pencolor("#33ff33")
q.begin_fill()
q.fillcolor("#33ff33")
i = 0
while (i < 30):
q.forward(2.4)
q.right(1)
i = (i + 1)
i = 0
while (i < 90):
q.forward(0.05)
q.right(1)
i = (i + 1)
q.forward(12)
i = 0
while (i < 30):
q.forward(0.7)
q.left(2)
i = (i + 1)
i = 0
while (i < 40):
q.forward(0.1)
q.right(2)
i = (i + 1)
q.forward(11)
i = 0
while (i < 25):
q.forward(0.1)
q.left(5)
i = (i + 1)
q.forward(15)
i = 0
while (i < 50):
q.forward(0.22)
q.right(1.45)
i = (i + 1)
q.forward(15)
i = 0
q.right(124)
q.forward(7)
i = 0
while (i < 45):
q.forward(0.2)
q.right(1)
i = (i + 1)
i = 0
while (i < 115):
q.forward(0.04)
q.left(1)
i = (i + 1)
q.forward(2)
q.right(60)
q.forward(22)
i = 0
while (i < 110):
q.forward(0.07)
q.left(1.05)
i = (i + 1)
q.forward(20)
q.setheading(-90)
q.forward(20)
i = 0
while (i < 10):
q.forward(0.5)
q.right(9)
i = (i + 1)
i = 0
while (i < 11):
q.forward(0.7)
q.right(6.5)
i = (i + 1)
q.forward(3)
i = 0
while (i < 5):
q.forward(0.7)
q.left(4)
i = (i + 1)
q.forward(20)
i = 0
while (i < 5):
q.forward(0.7)
q.left(7)
i = (i + 1)
q.forward(15)
q.setheading(-90)
q.forward(9)
i = 0
while (i < 5):
q.forward(0.7)
q.left(10)
i = (i + 1)
q.forward(15)
i = 0
while (i < 5):
q.forward(0.7)
q.left(8)
i = (i + 1)
q.forward(8)
q.setheading(-90)
q.forward(3)
i = 0
while (i < 4):
q.forward(0.7)
q.right(5)
i = (i + 1)
q.forward(5)
i = 0
while (i < 8):
q.forward(0.7)
q.right(5)
i = (i + 1)
q.forward(5)
i = 0
while (i < 20):
q.forward(0.2)
q.left(3.05)
i = (i + 1)
q.setheading(135)
q.forward(25)
i = 0
while (i < 20):
q.forward(0.5)
q.left(9)
i = (i + 1)
q.forward(25)
q.setheading(0)
q.forward(15)
q.setheading(225)
i = 0
while (i < 5):
q.forward(2.1)
q.left(3)
i = (i + 1)
i = 0
while (i < 5):
q.forward(2.1)
q.right(3)
i = (i + 1)
q.setheading(-90)
q.forward(27)
i = 0
while (i < 9):
q.forward(0.2)
q.left(5)
i = (i + 1)
q.forward(5)
i = 0
while (i < 18):
q.forward(0.3)
q.right(5)
i = (i + 1)
q.forward(10)
q.setheading((-93))
q.forward(13)
i = 0
while (i < 9):
q.forward(0.2)
q.left(5)
i = (i + 1)
q.setheading(-90)
q.forward(10)
i = 0
while (i < 6):
q.forward(0.2)
q.right(5)
i = (i + 1)
q.forward(9)
q.setheading(180)
q.forward(9)
i = 0
while (i < 5):
q.forward(0.2)
q.right(12)
i = (i + 1)
q.forward(10)
i = 0
while (i < 7):
q.forward(7)
q.right(5)
i = (i + 1)
q.setheading(135)
q.forward(7)
i = 0
while (i < 5):
q.forward(0.2)
q.right(5)
i = (i + 1)
q.forward(15)
i = 0
while (i < 7):
q.forward(2)
q.left(16.5)
i = (i + 1)
q.forward(8)
q.setheading(180)
q.forward(8)
i = 0
while (i < 5):
q.forward(2)
q.right(9)
i = (i + 1)
i = 0
while (i < 10):
q.forward(4)
q.right(9)
i = (i + 1)
i = 0
while (i < 5):
q.forward(2)
q.right(9)
i = (i + 1)
q.forward(5)
q.setheading(40)
q.forward(8)
i = 0
while (i < 13):
q.forward(0.2)
q.right(10)
i = (i + 1)
q.forward(6)
q.setheading(-30)
q.forward(9)
q.setheading(11)
q.forward(17)
i = 0
while (i < 9):
q.forward(0.3)
q.left(5)
i = (i + 1)
q.forward(23)
q.setheading(135)
q.forward(5)
i = 0
while (i < 10):
q.forward(0.2)
q.left(5.5)
i = (i + 1)
q.forward(22)
i = 0
while (i < 5):
q.forward(0.2)
q.right(4)
i = (i + 1)
q.forward(15)
q.setheading(60)
q.forward(4)
i = 0
while (i < 10):
q.forward(0.7)
q.right(6)
i = (i + 1)
q.forward(3)
i = 0
while (i < 25):
q.forward(0.1)
q.left(4)
i = (i + 1)
q.forward(3)
i = 0
while (i < 10):
q.forward(0.3)
q.right(9)
i = (i + 1)
i = 0
while (i < 9):
q.forward(1)
q.right(2)
i = (i + 1)
i = 0
while (i < 9):
q.forward(0.4)
q.right(9)
i = (i + 1)
q.forward(2)
q.setheading(35)
q.forward(15)
i = 0
while (i < 5):
q.forward(0.4)
q.right(3)
i = (i + 1)
q.forward(10)
q.setheading(90)
q.forward(10)
i = 0
while (i < 10):
q.forward(0.9)
q.left(16)
i = (i + 1)
q.forward(10)
i = 0
while (i < 11):
q.forward(0.3)
q.right(9)
i = (i + 1)
q.forward(7)
q.setheading(60)
q.forward(20)
q.setheading(0)
q.forward(7)
i = 0
while (i < 10):
q.forward(0.35)
q.left(9)
i = (i + 1)
q.forward(4)
i = 0
while (i < 10):
q.forward(1.2)
q.right(16)
i = (i + 1)
q.setheading((-90))
q.forward(4)
q.setheading(45)
q.forward(16)
q.setheading(90)
q.forward(15)
q.goto(-345, 140)
q.end_fill()
#大不列颠岛
q.penup()
q.goto(-432, 62)
q.begin_fill()
q.pendown()
q.setheading(0)
q.forward(3)
i = 0
while (i < 7):
q.forward(0.2)
q.left(5.5)
i = (i + 1)
q.forward(11)
i = 0
while (i < 11):
q.forward(0.3)
q.left(5.5)
i = (i + 1)
q.forward(5)
i = 0
while (i < 4):
q.forward(1)
q.right(3)
i = (i + 1)
i = 0
while (i < 12):
q.forward(0.3)
q.left(10.5)
i = (i + 1)
q.forward(3)
i = 0
while (i < 20):
q.forward(0.2)
q.left(4)
i = (i + 1)
q.forward(4)
i = 0
while (i < 10):
q.forward(0.2)
q.right(15)
i = (i + 1)
q.forward(6)
i = 0
while (i < 9):
q.forward(0.3)
q.left(5)
i = (i + 1)
q.forward(2)
i = 0
while (i < 9):
q.forward(0.2)
q.left(10)
i = (i + 1)
q.goto(-432, 62)
q.end_fill()
#澳大利亚
q.penup()
q.goto(-271, -75)
q.begin_fill()
q.setheading(240)
q.pendown()
q.pensize(2)
i = 0
while (i < 12):
q.forward(2.5)
q.right(1)
i = (i + 1)
i = 0
while (i < 3):
q.forward(0.5)
q.right(25)
i = (i + 1)
i = 0
while (i < 15):
q.forward(0.7)
q.right(1)
i = (i + 1)
i = 0
while (i < 45):
q.forward(0.2)
q.left(2)
i = (i + 1)
q.forward(13)
i = 0
while (i < 18):
q.forward(0.8)
q.right(9)
i = (i + 1)
q.forward(10)
i = 0
while (i < 7):
q.forward(3)
q.left(2)
i = (i + 1)
i = 0
while (i < 45):
q.forward(0.2)
q.right(1.7)
i = (i + 1)
q.forward(10)
q.setheading(90)
q.forward(9)
q.setheading(30)
q.forward(5)
q.setheading(-30)
q.forward(6)
q.setheading(-60)
q.forward(8)
i = 0
while (i < 9):
q.forward(0.1)
q.left(15)
i = (i + 1)
q.forward(5)
i = 0
while (i < 9):
q.forward(0.2)
q.right(10)
i = (i + 1)
q.forward(6)
i = 0
while (i < 6):
q.forward(0.2)
q.right(10)
i = (i + 1)
q.goto(-271, -75)
q.end_fill()
#上半弧
q.penup()
q.goto(-400, 150)
q.pendown()
q.begin_fill()
i = 0
q.setheading(180)
while (i < 85):
q.forward(2.55)
q.left(1)
i = (i + 1)
#凹坑
q.setheading(45)
q.forward(10)
i=0
while (i < 5):
q.forward(0.2)
q.right(6)
i = (i + 1)
q.forward(8)
i = 0
while (i < 6):
q.forward(0.2)
q.right(8)
i = (i + 1)
q.forward(10)
i = 0
while (i < 5):
q.forward(0.2)
q.right(8)
i = (i + 1)
q.forward(15)
i = 0
while (i < 5):
q.forward(0.1)
q.left(2)
i = (i + 1)
q.forward(16)
i = 0
while (i < 8):
q.forward(0.1)
q.right(6.5)
i = (i + 1)
q.forward(12)
i = 0
while (i < 5):
q.forward(0.5)
q.right(6)
i = (i + 1)
q.forward(9)
i = 0
while (i < 11):
q.forward(0.5)
q.left(5)
i = (i + 1)
q.forward(3)
i = 0
while (i < 11):
q.forward(0.5)
q.right(5.2)
i = (i + 1)
q.forward(17)
#下半弧
q.setheading(-72)
i=0
while (i < 57):
q.forward(2.55)
q.left(1)
i = (i + 1)
q.setheading(30)
q.forward(15)
i = 0
while (i < 7):
q.forward(0.3)
q.left(10)
i = (i + 1)
q.forward(10)
q.setheading(175)
i = 0
while (i < 15):
q.forward(1.9)
q.right(2)
i = (i + 1)
i = 0
while (i < 15):
q.forward(0.25)
q.right(4)
i = (i + 1)
q.forward(2)
i = 0
while (i < 7):
q.forward(0.1)
q.left(10)
i = (i + 1)
q.forward(8)
i = 0
while (i < 9):
q.forward(0.1)
q.right(5)
i = (i + 1)
q.forward(10)
i = 0
while (i < 2):
q.forward(0.3)
q.right(7)
i = (i + 1)
q.forward(25)
i = 0
while (i < 9):
q.forward(0.3)
q.right(5)
i = (i + 1)
q.forward(10)
i = 0
while (i < 10):
q.forward(0.3)
q.left(6)
i = (i + 1)
q.forward(7)
i = 0
while (i < 10):
q.forward(0.2)
q.left(5)
i = (i + 1)
q.forward(8)
i = 0
while (i < 9):
q.forward(0.4)
q.right(8)
i = (i + 1)
q.forward(12)
i = 0
while (i < 10):
q.forward(0.4)
q.left(6)
i = (i + 1)
q.forward(15)
i = 0
while (i < 10):
q.forward(0.4)
q.right(7)
i = (i + 1)
q.forward(3)
i = 0
while (i < 10):
q.forward(0.9)
q.right(1.2)
i = (i + 1)
q.setheading(180)
q.forward(5)
i = 0
while (i < 9):
q.forward(0.2)
q.right(10)
i = (i + 1)
q.forward(5)
i = 0
while (i < 5):
q.forward(1)
q.right(2.5)
i = (i + 1)
i = 0
while (i < 5):
q.forward(1.2)
q.left(2.5)
i = (i + 1)
q.setheading(225)
q.forward(5)
q.setheading(150)
q.forward(6)
q.setheading(90)
q.forward(9)
i = 0
while (i < 5):
q.forward(2)
q.right(2.5)
i = (i + 1)
q.setheading(90)
q.forward(8)
i = 0
while (i < 5):
q.forward(0.2)
q.right(20)
i = (i + 1)
q.forward(3.5)
q.setheading(90)
q.forward(7)
i = 0
while (i < 5):
q.forward(0.1)
q.right(6)
i = (i + 1)
q.forward(6)
q.setheading(-20)
q.forward(9)
q.setheading(-90)
q.forward(9)
i = 0
while (i < 5):
q.forward(0.3)
q.left(6)
i = (i + 1)
q.forward(4)
i = 0
while (i < 10):
q.forward(0.3)
q.left(8)
i = (i + 1)
q.forward(3)
i = 0
while (i < 10):
q.forward(0.3)
q.left(10)
i = (i + 1)
q.forward(6)
q.setheading(90)
q.forward(9)
i = 0
while (i < 10):
q.forward(0.3)
q.right(8)
i = (i + 1)
q.forward(6)
i = 0
while (i < 11):
q.forward(0.2)
q.left(5)
i = (i + 1)
q.forward(13)
q.setheading(20)
q.forward(10)
q.setheading(0)
q.forward(2)
i = 0
while (i < 10):
q.forward(0.3)
q.left(7.5)
i = (i + 1)
q.forward(9)
q.setheading(170)
q.forward(3)
q.setheading(105)
q.forward(11)
q.setheading(180)
q.forward(6)
q.setheading(235)
q.forward(12)
q.setheading(180)
q.forward(8)
i = 0
while (i < 10):
q.forward(0.4)
q.right(12.5)
i = (i + 1)
q.forward(15)
i = 0
while (i < 5):
q.forward(0.2)
q.right(7)
i = (i + 1)
q.forward(2)
i = 0
while (i < 5):
q.forward(0.2)
q.left(6)
i = (i + 1)
q.forward(11)
i = 0
while (i < 9):
q.forward(0.3)
q.right(10)
i = (i + 1)
q.forward(10)
i = 0
while (i < 9):
q.forward(0.3)
q.right(9)
i = (i + 1)
q.forward(1)
i = 0
while (i < 6):
q.forward(0.3)
q.left(10)
i = (i + 1)
q.forward(13)
q.setheading(0)
q.forward(6)
q.setheading(45)
q.forward(7)
q.setheading(100)
q.forward(16)
i = 0
while (i < 10):
q.forward(0.2)
q.right(10)
i = (i + 1)
q.forward(13)
q.setheading(60)
q.forward(13)
q.setheading(90)
q.forward(5)
q.goto(-400, 150)
q.end_fill()
#月球
q.penup()
q.pensize(0.2)
q.goto(-675,200)
q.pendown()
q.pencolor("#cccccc")
q.dot(75)
i=0
q.pencolor("white")
while i < 200:
yx=random.randint(-705,-喵5)
yy=random.randint(170,230)
q.penup()
q.goto(yx,yy)
q.pendown()
q.dot(random.randint(1,3))
i=i+1
#星星
i=0
while i < 100:
s=random.randint(1,4)
if s==1:
xingx = random.randint(-550,-50)
xingy = random.randint(175,275)
elif s==2:
xingx = random.randint(-750,-550)
xingy = random.randint(-175,275)
elif s==3:
xingx = random.randint(-750,-250)
xingy = random.randint(-275,-175)
else:
xingx = random.randint(-250,-50)
xingy = random.randint(-275,175)
q.penup()
q.goto(xingx,xingy)
q.pendown()
daxiao=int(random.randint(2,6))
q.pencolor(colors[random.randint(0, 5)])
q.dot(daxiao)
i=i+1
# 飞行器1号
q.penup()
q.goto(-305,90)
q.pendown()
t = 0
i = 0
def arc(direction, length):
if (direction == 1):
i = 0
while (i < 60):
q.forward(length)
q.left(1)
i = (i + 1)
i = 0
while (i < 60):
q.forward(length * 2)
q.left(1)
i = (i + 1)
i = 0
while (i < 60):
q.forward(length)
q.left(1)
i = (i + 1)
else:
q.right(180)
i = 0
while (i < 60):
q.forward(length)
q.right(1)
i = (i + 1)
i = 0
while (i < 60):
q.forward(length * 2)
q.right(1)
i = (i + 1)
i = 0
while (i < 60):
q.forward(length)
q.right(1)
i = (i + 1)
q.right(180)
#第一节
q.pencolor("black")
q.pensize(1)
q.setheading(30)
q.fillcolor("#999999")
q.begin_fill()
t=0
while (t < 2):
arc(1, 0.15)
t = (t + 1)
q.end_fill()
q.fillcolor("#c0c0c0")
q.begin_fill()
q.forward(30)
arc(1, 0.15)
q.forward(30)
arc(2, 0.15)
q.end_fill()
q.forward(30)
i = 0
while (i < 60):
q.forward(0.15)
q.left(1)
i = (i + 1)
#第二节
q.fillcolor("#999999")
q.begin_fill()
q.setheading(30)
q.forward(12)
i = 0
q.left(60)
while (i < 60):
q.forward(0.3)
q.left(1)
i = (i + 1)
q.setheading(210)
q.forward(12)
q.right(240)
i = 0
while (i < 60):
q.forward(0.3)
q.right(1)
i = (i + 1)
q.end_fill()
#第三节
q.setheading(30)
q.forward(6)
qx2 = q.xcor()
qy2 = q.ycor()
q.setheading(-30)
q.fillcolor("#999999")
q.begin_fill()
i = 0
while (i < 60):
q.forward(0.15)
q.left(1)
i = (i + 1)
qx = q.xcor()
qy = q.ycor()
arc(1, 0.15)
i = 0
while (i < 60):
q.forward(0.15)
q.left(1)
i = (i + 1)
qx3 = q.xcor()
qy3 = q.ycor()
q.setheading(30)
q.forward(6)
i = 0
q.setheading(-30)
while (i < 60):
q.forward(0.3)
q.right(1)
i = (i + 1)
q.setheading(30)
q.backward(6)
q.end_fill()
q.penup()
q.goto(qx, qy)
q.pendown()
q.fillcolor("#c0c0c0")
q.begin_fill()
q.forward(25)
arc(1, 0.15)
q.forward(25)
arc(2, 0.15)
q.end_fill()
def wing(direction, lengthwise, transerse, l_length, t_length):
q.fillcolor("blue")
q.pensize(3)
q.setheading(direction)
q.pencolor("#c0c0c0")
q.forward(12)
q.pensize(2)
q.pencolor("black")
q.left(90)
q.forward(((transerse-1)*t_length)/2)
q.begin_fill()
q.backward((transerse-1)*t_length)
q.right(90)
q.forward(10)
q.left(90)
q.forward((transerse-1)*t_length)
q.left(90)
q.forward(10)
q.end_fill()
q.left(90)
q.forward((transerse-1)*t_length)
q.left(90)
q.forward(10)
q.right(90)
q.forward(0.5*t_length)
q.left(90)
q.pensize(1.5)
q.begin_fill()
i = 0
while i < 2:
q.forward(lengthwise*l_length)
q.left(90)
q.forward(transerse*t_length)
q.left(90)
i = i+1
q.end_fill()
i = 0
while i < (lengthwise-1):
q.forward(l_length)
q.left(90)
q.forward(transerse*t_length)
q.backward(transerse*t_length)
q.right(90)
i = i+1
q.forward(l_length)
q.left(90)
i = 0
while i < (transerse-1):
q.forward(t_length)
q.left(90)
q.forward(lengthwise*l_length)
q.backward(lengthwise*l_length)
q.right(90)
i = i+1
q.penup()
q.goto(qx2, qy2)
q.pendown()
wing(-45, 7, 3, 13, 17)
q.penup()
q.goto(qx3, qy3)
q.pendown()
wing(135, 7, 3, 13, 17)
#飞行器2号
q.penup()
q.goto(-584,-207)
q.pendown()
#第一节
q.pencolor("black")
q.pensize(1)
q.setheading(30)
q.fillcolor("#999999")
q.begin_fill()
t=0
while (t < 2):
arc(1, 0.1)
t = (t + 1)
q.end_fill()
q.fillcolor("#c0c0c0")
q.begin_fill()
q.forward(20)
arc(1, 0.1)
q.forward(20)
arc(2, 0.1)
q.end_fill()
q.forward(20)
i = 0
while (i < 60):
q.forward(0.1)
q.left(1)
i = (i + 1)
#第二节
q.fillcolor("#999999")
q.begin_fill()
q.setheading(30)
q.forward(8)
i = 0
q.left(60)
while (i < 60):
q.forward(0.2)
q.left(1)
i = (i + 1)
q.setheading(210)
q.forward(8)
q.right(240)
i = 0
while (i < 60):
q.forward(0.2)
q.right(1)
i = (i + 1)
q.end_fill()
#第三节
q.setheading(30)
q.forward(4)
qx2 = q.xcor()
qy2 = q.ycor()
q.setheading(-30)
q.fillcolor("#999999")
q.begin_fill()
i = 0
while (i < 60):
q.forward(0.1)
q.left(1)
i = (i + 1)
qx = q.xcor()
qy = q.ycor()
arc(1, 0.1)
i = 0
while (i < 60):
q.forward(0.1)
q.left(1)
i = (i + 1)
qx3 = q.xcor()
qy3 = q.ycor()
q.setheading(30)
q.forward(4)
i = 0
q.setheading(-30)
while (i < 60):
q.forward(0.2)
q.right(1)
i = (i + 1)
q.setheading(30)
q.backward(4)
q.end_fill()
q.penup()
q.goto(qx, qy)
q.pendown()
q.fillcolor("#c0c0c0")
q.begin_fill()
q.forward(17)
arc(1, 0.1)
q.forward(17)
arc(2, 0.1)
q.end_fill()
q.penup()
q.goto(qx2, qy2)
q.pendown()
wing(-45, 6, 3, 10, 14)
q.penup()
q.goto(qx3, qy3)
q.pendown()
wing(135, 6, 3, 10, 14)
q.hideturtle()
#文字
def prints(content, size, x, y):
q.pencolor("black")
q.penup()
q.goto(x, y)
q.pendown()
i = 0
while (len(content) > i):
q.write(content[i], font = ('宋体', size, 'normal'))
q.penup()
q.forward(size*1.3)
q.pendown()
i += 1
time.sleep(0.1)
def p_clean():
cleany=[155,80,5,-70,-145,-220,-295]
q.pencolor("#ffffcc")
q.fillcolor("#ffffcc")
for i in cleany:
q.penup()
q.goto(45, i)
q.pendown()
q.begin_fill()
q.goto(750, i)
q.goto(750, i+55)
q.goto(45, i+55)
q.goto(45, i)
q.end_fill()
q.setheading(0)
prints('著名哲学家康德说,世界上有两样东西能',30,45,160)
prints('深深地震撼我们的心灵:一件是我们心中',30,45,85)
prints('崇高的道德准则;另一件是我们头顶上的',30,45,10)
prints('星空。从嫦娥奔月的神话到万户飞天的尝',30,45,-65)
prints('试,中国人的飞天梦,与中华民族的历史',30,45,-130)
prints('一样悠远。一起回顾,那些年,中国航天',30,45,-205)
prints('事业所走过的伟大历程!',30,45,-280)
time.sleep(5)
p_clean()
prints('尽管起跑不那么完美,但我们不怕输在起', 30, 45, 160)
prints('跑线上,因为人生、事业是一场马拉松。', 30, 45, 85)
prints('历史永远会记住这一天,1970年4月', 30, 45, 10)
prints('24日,第一颗人造卫星“东方红一号”', 30, 45, -65)
prints('升空,当“东方红”的音乐在太空响起', 30, 45, -130)
prints('中国人探索宇宙和平利用太空序幕开启了', 30, 45, -205)
time.sleep(5)
p_clean()
prints('杨利伟搭乘“神舟五号”飞船成功往返,', 30, 45, 160)
prints('从此,中国人打开了太空的大门。', 30, 45, 85)
prints('2007年10月24日,中国', 30, 45, 10)
prints('首颗月球探测器“嫦娥一号”准确入轨,', 30, 45, -65)
prints('实现了中华民族千年奔月的梦想。', 30, 45, -130)
time.sleep(5)
p_clean()
prints('高强度训练、高负载前行,', 30, 45, 160)
prints('千锤百炼,只待祖国挑选。20年里,', 30, 45, 85)
prints('我国选拔了2批21名航天员,全部', 30, 45, 10)
prints('具备独立执行载人航天飞行任务的能力', 30, 45, -65)
prints('创造了世界航天员训练零淘汰率的纪录。', 30, 45, -130)
prints('面对祖国,怎么才能表达心中千言万语?', 30, 45, -205)
prints('航天员给出了自己的答案:军礼!', 30, 45, -280)
time.sleep(5)
p_clean()
prints('深邃的太空中,', 30, 45, 160)
prints('是过硬的本领、无畏的勇气、承载的使命', 30, 45, 85)
prints('让五星红旗高高飘扬。', 30, 45, 10)
prints('有一种付出叫等待,有一种收获也叫等待', 30, 45, -65)
prints('他们,数次入选备份', 30, 45, -130)
prints('数次与太空失之交臂,', 30, 45, -205)
prints('但依旧初心不改……!', 30, 45, -280)
time.sleep(5)
p_clean()
prints('只一句:', 30, 45, 160)
prints('不管主份还是备份,都是航天员的本分!', 30, 45, 85)
prints('英雄热血,浇筑飞天梦想。', 30, 45, 10)
prints('向航天员致敬!!!', 30, 45, -65)
turtle.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn