# 倒计时锁屏
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)
相关文章
- 03-18windows python生成 pyd文件
- 03-18windows anaconda python3.7 import ssl,psycopg2报错
- 03-18【邢不行|量化小讲堂系列35-python量化入门】建议收藏 | Windows下安装TA-Lib终极教程
- 03-18selenium webdriver+windows+python+chrome遇见的问题
- 03-18windows在已有python3的基础上安装python2
- 03-18windows下俩种python 2 和 python 3版本的切换
- 03-18Python安装(针对Windows)
- 03-18windows环境下python2和python3版本的切换
- 03-18Python18_Windows下切换py2和py3
- 03-18windows倒计时锁频-python