python在windows锁屏的代码
C:Userswangmingjie>python
Python 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> user32 = windll.LoadLibrary('user32.dll')
>>> user32.LockWorkStation()
1
>>>
python在windows锁屏的代码
来源:PY学习网:原文地址:https://www.py.cn/article.html

![python在windows锁屏的代码[python GUI教程]](https://www.zixueka.com/wp-content/uploads/2023/10/1697039522-6cb3b13cd00b97d.jpg)
