用户:
请设置昵称请查看:0 回复:0 评论:0 创建时间:2023-12-23T16:17:32
【作品展示】

【作品介绍】
注意:由于用到Windows专用库,只能在Windows下使用没做优化
【作品源代码】
import time
import winsound
t = 0
while True:
p = input()
if (p == '7355608'):
break
print('C4已被安放!')
while (t < 10):
winsound.Beep(2000, 500)
time.sleep(1)
t = (t + 1)
while (t < 20):
winsound.Beep(2000, 500)
time.sleep(0.5)
t = (t + 1)
while (t < 30):
winsound.Beep(2000, 500)
time.sleep(0.1)
t = (t + 1)
while (t < 40):
winsound.Beep(2000, 500)
time.sleep(0.01)
t = (t + 1)
while (t < 50):
winsound.Beep(2000, 500)
time.sleep(0.001)
t = (t + 1)
while (t < 60):
winsound.Beep(2000, 500)
time.sleep(0.0001)
t = (t + 1)
while (t < 70):
winsound.Beep(2000, 500)
time.sleep(0.000001)
t = (t + 1)
print('C4已被爆炸!')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn