有人微信不回?不能忍,可以用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()
把微信好友的名字输入列表
用了之后朋友把我屏蔽了~