windows倒计时锁频-python
作者:互联网
# 倒计时锁屏
import time
from ctypes import *
def closewindows(closetime):
while closetime>0:
print(closetime)
time.sleep(1)
closetime-=1
user32 = windll.LoadLibrary('user32.dll')
user32.LockWorkStation()
if __name__ == "__main__":
closewindows(3)
标签:__,windows,closewindows,closetime,锁频,python,user32,time,import 来源: https://blog.csdn.net/weixin_42188827/article/details/89311378