python实现windows锁屏

from ctypes import *
user32 = windll.LoadLibrary('user32.dll')
user32.LockWorkStation()