當前位置:
首頁 >
Python 微信定向问好
發布時間:2025/3/8
23
豆豆
生活随笔
收集整理的這篇文章主要介紹了
Python 微信定向问好
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
from numpy import *
import itchat
from threading import Timerdef get_userName():itchat.auto_login(hotReload=True)friend=itchat.search_friends(name="飛鳥信")print(friend)userName = friend[0]['UserName']return userNamedef send_msg():userName = get_userName()itchat.send("你好", toUserName=userName)t = Timer(3600, send_msg)t.start()
send_msg()
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎
總結
以上是生活随笔為你收集整理的Python 微信定向问好的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Maven项目整合提示:Maven Mi
- 下一篇: cpython教程_python高性能扩