import tkinter
import random
import time
import threading
def boom():
window=tkinter.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))
tkinter.Label(window,text="你是fw",bg="pink",font=('宋体',17),width=20,height=4).pack()
window.mainloop()
time.sleep(1)
threads=[]
for i in range(100):
t=threading.Thread(target=boom)
threads.append(t)
time.sleep(0.001)
threads[i].start()