有人微信不回?这不能忍

有人微信不回?不能忍,可以用python实现一个简单的骚扰小程序(能让人崩溃),代码如下:

import pyautogui as pg
import pyperclip as pc
from apscheduler.schedulers.blocking import BlockingScheduler
import time
import datetime
pg.PAUSE=0.5
def main():
    name1=[]
    pg.hotkey("ctrl","alt","w")
    for i in name1:
        pg.hotkey("ctrl","f")
        pc.copy(i)
        pg.hotkey("ctrl","v")
        pg.press("enter")
        local=time.strftime(",现在时间是: %Y-%m-%d:%H:%M:%S",time.localtime())
        if 18>=datetime.datetime.now().hour>14:
            info_head="下午好"
        elif 23>=datetime.datetime.now().hour>18:
            info_head="晚上好"
        elif datetime.datetime.now().hour>23 or datetime.datetime.now().hour<6:
            info_head="半夜好"
        elif 6<=datetime.datetime.now().hour<12:
            info_head="上午好"
        else:
            info_head="中午好"
        local=i+','+info_head+local
        pc.copy(local)
        pg.hotkey("ctrl","v")
        pg.press("enter")
    pg.hotkey("ctrl","alt","w")
if __name__=='__main__':
    b=BlockingScheduler()
    b.add_job(main,"cron",year=2022,month=3,hour="0-23",minute="0-59")
    b.start()

把微信好友的名字输入列表

用了之后朋友把我屏蔽了~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值