ustbwang 发表于 2018-6-22 07:44:10

Python在windows下的锁屏代码

Python 2.7.8 (default, Jun 30 2014, 16:08:48) on win32  
Type "copyright", "credits" or "license()" for more information.
  
>>>
  
>>>
  
>>> from ctypes import *
  
>>> user32 = windll.LoadLibrary('user32.dll')
  
>>> user32.LockWorkStation()
  
1
页: [1]
查看完整版本: Python在windows下的锁屏代码