Fog*_*ird 4 python windows administrator
我希望只有当前用户是管理员才能访问我的应用程序中的某些功能.
如何在Windows上使用Python确定当前用户是否在本地Administrators组中?
Chr*_*heD 6
你可以试试这个:
import ctypes print ctypes.windll.shell32.IsUserAnAdmin()
归档时间:
15 年,8 月 前
查看次数:
2020 次
最近记录:
7 年,7 月 前