用户:我是happy猫查看:0 回复:0 评论:0 创建时间:2021-04-29T20:47:40
【作品展示】

【作品介绍】
参赛,记得投我一票
【作品源代码】
import turtle
import easygui
import time
__Pen = turtle.Pen()
__Pen.hideturtle()
print('Hello,我是孙洋洋。我是一名室长,但今天,我以一名参赛者的身份来到这里。')
print('今天,我们要去太空。')
t = turtle.Pen()
__Pen.pencolor("#ffff66")
__Pen.pendown()
__Pen.fillcolor("#ffff66")
__Pen.begin_fill()
__Pen.circle(50)
__Pen.end_fill()
for __count in range(20):
d = 20
__Pen.goto(0, (d + 30))
__Pen.penup()
__Pen.right(20)
__Pen.forward(30)
__Pen.pendown()
__Pen.forward(40)
__Pen.penup()
print('看啊!那是太阳!我们乘坐的 m-c凤凰2号 已经到了太阳附近了!')
input('你的感受是?')
print('好……好吧。看!不好!!陨石来了~!!!!')
easygui.msgbox('陨石来了!正在砸向我们的飞船。我们强烈的求生本能使我们在想办法。它已经十分靠近我们俩了。怎么办??')
input('怎么办?(经过挑选,我们选出了几种方案:1.打开逃生舱,弃船逃生。2.继续驾驶,不能把这么好的一只飞船弄坏。填序号)')
if (input() == 1):
easygui.msgbox('很遗憾,您没有一次过关。因为陨石与飞船擦肩而过,击中了逃生舱。我们就在逃生舱里……')
turtle.done()
elif (input() == 2):
print('耶!陨石与飞船擦肩而过,击中了逃生舱!我们没有危险了!')
__Pen.goto(100, 100)
__Pen.pendown()
__Pen.fillcolor("#666666")
__Pen.begin_fill()
__Pen.circle(50)
__Pen.end_fill()
print('这是水星。哇!和大家呆在一起的时间真快,不知不觉就收尾了。拜拜!小朋友们……下次再见!')
print('渣渣一个,希望进36强,如果进了,投我一票!')
time.sleep(1)
turtle.done()
else:
print('选神马?!啊!(选择了方案2,但陨石击中了逃生舱)')
easygui.msgbox('很遗憾,您没有一次过关。因为陨石与飞船擦肩而过,击中了逃生舱。我们就在逃生舱里……')
turtle.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn