用户:
林俊贤1查看:0 回复:1 评论:0 创建时间:2022-07-24T14:28:44
【作品展示】

【作品介绍】
一般来说,都是右键任务栏,这个会把任务栏隐藏哈哈哈
【作品源代码】
import pygame
import easygui
import requests
class terribleapp:
def __tap(self):
pygame.init()
c = easygui.buttonbox(' 请注意,该程序除非进程管理器\n关机之外,不可退出', choices=('打开','退出'))
if c == '打开':
size = h, w = 4800,5000
while 1:
pygame.display.set_mode(size)
ans = easygui.enterbox('输入回答 :1 + 1 = ?')
if ans == '10':
easygui.msgbox('正确,赠送百度图片一张')
url = 'https://www.喵/img/bd_logo.png'
g = requests.get(url)
with open('bd.png', 'wb')as f:
f.write(g.content)
easygui.msgbox('放在了C盘上')
exit()
else:
pass
else:
easygui.msgbox(' 想得美,循环吧你')
while 1:
size = h, w = 1000, 1000
pygame.display.set_mode(size)
def use(self):
self.__tap()
class real_use(terribleapp):
pass
class why:
def __init__(self, why1, why2):
self.why1 = why1
self.why2 = why2
w = why('第一因为设个面向对象可以防止你们乱搞', '第二作者新学嘛兴奋')
print()
print('为什么要弄面向对象:\n{0},{1}'.format(w.why1, w.why2))
tabe = real_use()
tabe.use()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn