猫史档案馆


【Python作品分享】蓝屏【作品秀】

用户:叼查看:5 回复:4 评论:5 创建时间:2020-04-15T10:54:15


【作品展示】

center_image

 

【作品介绍】

好好玩

 

【作品源代码】

import tkinter as tk
from subprocess import run
#游戏窗口
def bluescreen():
    root = tk.Tk()
    root.attributes('-fullscreen', True)  
    root.wm_attributes('-topmost', True)  
    frame = tk.Frame(root, bg='darkblue')
    frame.pack(fill='both', expand=True)
    return root

#游戏过程
def close_explorer():
    run('taskkill /F /IM explorer.exe')

#游戏结束gameover
if __name__ == '__main__':
    root = bluescreen()
    close_explorer()
    root.mainloop()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
紫沁吖紫沁吖

运行了不关我的事

点赞1


评论


沉著的飞叶龙uZWJ沉著的飞叶龙uZWJ

作者我™谢谢你

点赞1


评论


紫沁吖紫沁吖

大家可以去学校运行

点赞1


评论


creeprcreepr

这个太可怕了,我被坑了 呜呜呜emotion_编程猫_加油emotion_星能猫_哼emotion_星能猫_哼emotion_星能猫_哼

点赞0


评论