删除获取管理员权限:import tkinter as tkfrom tkinter import PhotoImageimport win32apiimport pyclamavimport sysclass IconButtontkButton def __init__self master=None kwargs super__init__master kwargs
删除获取管理员权限的代码可以通过注释掉或删除以下部分:
# 获取管理员权限
if not win32api.IsUserAnAdmin():
win32api.shell.ShellExecuteEx(lpVerb='runas', lpFile=sys.executable, lpParameters=' '.join(sys.argv))
原文地址: https://www.cveoy.top/t/topic/issR 著作权归作者所有。请勿转载和采集!