用户:品牌猫查看:7 回复:2 评论:7 创建时间:2020-02-22T15:32:24
【作品展示】

【作品介绍】
一个计时器感谢 时之笛林克a不要相信假的时之笛林克
提供bug解决方法
原代码
vvv
【作品源代码】
import easygui
import time
# 感谢 时之笛林克a不要相信假的时之笛林克 提供BUG解决方法
# c喵(滑稽)
# 开始进入Python的世界
a = 3
b = (a + 1)
if (a == b - 1):
easygui.msgbox('OK', 'Codemao', 'Ok')
时间 = int(input('时间'))
"""
^
BUG位置
"""
while True:
try:
if easygui.ynbox('开始?', 'Codemao', ('是', '退出')):
时间 = 时间
for __count in range(时间):
time.sleep(1)
时间 -= 1
print(时间)
else:
break
except TypeError:
easygui.msgbox('Hello')
else:
easygui.msgbox('crash--电脑太卡/未知计算错误', 'error', 'Ok')
#版权归品牌猫所有
print('oK')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn