5 Star 50 Fork 0

Gitee Community / 码力传递:晒代码赢奖品

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
微信定时问好-python 417 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
曼陀罗 提交于 2020-06-04 12:05 . add 微信定时问好-python.
from numpy import *
import itchat
from threading import Timer
def get_userName():
itchat.auto_login(hotReload=True)
friend=itchat.search_friends(name="亭韵1")
print(friend)
userName = friend[0]['UserName']
return userName
def send_msg():
userName = get_userName()
itchat.send("你好", toUserName=userName)
t = Timer(3600, send_msg)
t.start()
send_msg()
1
https://gitee.com/gitee-community/gitee-7th-event-3.git
git@gitee.com:gitee-community/gitee-7th-event-3.git
gitee-community
gitee-7th-event-3
码力传递:晒代码赢奖品
master

搜索帮助

14c37bed 8189591 565d56ea 8189591