首页 > GUI教程 > 正文

python在windows锁屏的代码

C:\Users\wangmingjie>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锁屏的代码

上一篇:python生成图片
下一篇:python使用wmi模块获取windows下的系统信息 监控系统

PythonTab微信公众号:

Python技术交流互助群 ( 请勿加多个群 ):

群1: 87464755

群2: 333646237

群3: 318130924

群4: 385100854