import subprocess
import tkinter as tk
from tkinter import messagebox, scrolledtext
from tkinter import ttkdef check_unused_ips():# 初始化ip_range = entry.get()unused_ips = []progress_bar[maximum] = 254progress_bar[value] = 0output.delete(1.0, tk.END)for i…