Recently I found a very interesting Python script code of a spoof friend

first of all:

You need a computer

then:

You have a good partner or many small partners
Finally:

The code is packaged and sent to him, and the computer of the friend will automatically lock the screen. Welcome to try but don't do bad things.

Computer lock screen code:

from ctypes import * 
def lock_windows():
    while True:
        # 调用系统底层api,载入依赖库,系统运行时所需要的核心代码
        user32 = windll.LoadLibrary('user32.dll')
        user32.LockWorkStation()
        time.sleep(15)

lock_windows()

Hee Hee An Xian is learning to do
Tik Tok recently~ If you are interested, you can pay more attention to it. There are a lot of fun codes and tutorials to share in the middle Tik Tok Number: en79798 Tik Tok
Name: An Xian who learns Python

Guess you like

Origin blog.csdn.net/weixin_45293202/article/details/114681887