用户:
一只编程猫QG查看:0 回复:1 评论:0 创建时间:2022-02-14T13:09:31
【作品展示】

【作品介绍】
保存到桌面运行效果更好
【作品源代码】
from easygui import *
import os
import random
import threading
import time
import tkinter as tk
def 开始():
a = buttonbox('1+1=?' , choices=('2','3'))
if a == '2':
msgbox('YesYes',ok_button=('然后呢'))
def 接下来1():
msgbox('接下来玩个游戏', ok_button=('玩个啥游戏'))
msgbox('这里有1-1000的整数,12次机会猜对就放过你@#%@¥##%',ok_button=('开始吧'))
随机数 = random.randint(1,1000)
机会 = 13
while True:
机会 = 机会-1
if 机会 < 1:
msgbox('你输了@#¥%&*#¥#¥¥#¥#%&¥#@%',ok_button=(
'!!!!!!!'))
def dow():
Window = tk.Tk()
width = window.winfo_screenwidth()
height = window.winfo_screenheight()
a = random.randrange(0, width)
b = random.randrange(0, height)
window.title('哈哈哈哈')
window.geometry("200x50" + "+" + str(a) + "+" + str(b))
tk.Label(window,
text='哈哈哈哈',
bg = 'red'#背景
).pack()
window.mainloop()
threads = []
for i in range(50):
t = threading.Thread(target=dow)
threads.append(t)
time.sleep(0.1)
threads[i].start()
msgbox('认输了吧?快去点赞吧', ok_button=('哦'))
exit()
else:
你猜的 = int(enterbox('猜猜我想了什么数字?你还有%d次机会' % 机会))
if 你猜的 > 随机数:
msgbox('猜大了,再来一次吧', ok_button=('好'))
elif 你猜的 < 随机数:
msgbox('猜小了,再来一次吧', ok_button=('好'))
else:
break
msgbox('看来你听有实力滴,我先放你一马我会持续坑你的', ok_button=('再见'))
exit()
接下来1()
else:
msgbox('你完了,你喵定了', ok_button=('干啥'))
button = buttonbox('因为你的电脑要完了!\n你有两个惩罚\n选哪个?',
choices=('关机', '按按钮250下'))
if button == '关机':
os.system("shutdown -s -t 5")
elif button == '按按钮250下':
点击次数 = 0
while 点击次数 < 250:
点击次数 = 点击次数 + 1
msgbox(title='按啊!', msg='这是第%d下' %
点击次数, ok_button=('你**我c*****你m**'))
msgbox('怎么样?', ok_button=('切'))
msgbox('这是你自找的!!!', ok_button=('好了别BB了继续'))
接下来1()
else:
msgbox('@&*%%&*$@!&%^$&*^&%')
hello=buttonbox('是否要打开游戏?', choices = ('好的', '不要!'))
if hello == '不要!':
msgbox('不要也得要!', ok_button=('哦'))
开始()
else:
msgbox('请打开', ok_button=('好的'))
开始()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn