用户:飞翔到云间查看:0 回复:0 评论:0 创建时间:2019-10-31T21:36:32
【作品展示】

【作品介绍】
第2期来了,这可费了我好大的功夫啊,等待下期累喵我。
【作品源代码】
import easygui
import time
import turtle
__Pen = turtle.Pen()
#开始进入Python的世界
easygui.msgbox('哈喽,大家好,这个是第2期')
if (easygui.ynbox('准备好了吗', '前言', ('准备好了', '没有')) == 1):
easygui.msgbox('准备好啦是吧', '前言', '是')
easygui.msgbox('那么开始', '前言', '好')
if (easygui.ynbox('是否开始?', '询问', ('是', '否')) == 1):
easygui.msgbox('好')
time.sleep(1)
easygui.msgbox('请做好心理准备', '倒计时', 'Ok')
time.sleep(1)
easygui.msgbox('3', '倒计时', '下一秒')
easygui.msgbox('2', '倒计时', '下一秒')
easygui.msgbox('1', '倒计时', '准备好了')
easygui.msgbox('开始', '开始')
__Pen.setheading(90)
__Pen.forward(10)
__Pen.setheading(180)
__Pen.forward(10)
__Pen.setheading(270)
__Pen.forward(10)
__Pen.setheading(360)
__Pen.forward(10)
if (easygui.ynbox('刚刚画了啥', '问题1', ('长方形', '正方形')) == 0):
easygui.msgbox('回答正确')
easygui.msgbox('眼力很好', '夸奖', '谢谢')
easygui.msgbox('3', '倒计时', '下一秒')
easygui.msgbox('2', '倒计时', '下一秒')
easygui.msgbox('1', '倒计时', '准备好了')
easygui.msgbox('开始', '开始')
__Pen.setheading(90)
__Pen.forward(10)
__Pen.setheading(180)
__Pen.forward(20)
__Pen.setheading(270)
__Pen.forward(10)
__Pen.setheading(360)
__Pen.forward(20)
if (easygui.ynbox('刚刚画了啥', '问题2', ('长方形', '正方形')) == 1):
easygui.msgbox('回答正确')
easygui.msgbox('眼力很好', '夸奖', '谢谢')
easygui.msgbox('3', '倒计时', '下一秒')
easygui.msgbox('2', '倒计时', '下一秒')
easygui.msgbox('1', '倒计时', '准备好了')
easygui.msgbox('开始', '开始')
__Pen.setheading(90)
__Pen.forward(20)
__Pen.setheading(180)
__Pen.forward(20)
__Pen.setheading(270)
__Pen.forward(20)
__Pen.setheading(360)
__Pen.forward(20)
if (easygui.ynbox('刚刚画了啥', '问题3', ('啥也不是', '正方形')) == 0):
easygui.msgbox('回答正确')
easygui.msgbox('眼力很好', '夸奖', '谢谢')
easygui.msgbox('3', '倒计时', '下一秒')
easygui.msgbox('2', '倒计时', '下一秒')
easygui.msgbox('1', '倒计时', '准备好了')
easygui.msgbox('开始', '开始')
__Pen.setheading(90)
__Pen.forward(20)
__Pen.setheading(180)
__Pen.forward(20)
__Pen.setheading(270)
__Pen.forward(20)
__Pen.setheading(360)
__Pen.forward(20)
easygui.msgbox('哎呀妈,转眼间就结束了', '结束语', '是啊')
easygui.msgbox('下期再见', '结束语', '好')
easygui.msgbox('谢谢', '结束语', '不用客气')
easygui.msgbox('拜拜', '结束语', '拜拜')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn