import tkinter as tk from tkinter import messagebox root = tk.Tk() root.withdraw() while True: messagebox.showerror('正在删除文件', '是否确认删除文件?删除后将无法恢复') root.mainloop()