用户:品牌猫查看:0 回复:0 评论:0 创建时间:2020-03-14T19:56:13
附件:计时器网址:https://shequ.codemao.cn/community/258583
import easygui
import time
# 感谢 时之笛林克a不要相信假的时之笛林克 提供BUG解决方法
#空---
# 开始进入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(时间, end='\r')
else:
break
except TypeError:
easygui.msgbox('Hello')
else:
easygui.msgbox('crash--电脑太卡/未知计算错误', 'error', 'Ok')
'''
#版权归品牌猫所有
'''
print ('oK')