From c24fbc0d3de3847d60f6164e5aabdf3ee44e257c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=BE=8E?= <915722+Cairo-SR8@user.noreply.gitee.com> Date: Thu, 4 Jun 2020 12:05:30 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=BE=AE=E4=BF=A1=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E9=97=AE=E5=A5=BD-python.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...46\227\266\351\227\256\345\245\275-python" | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 "\345\276\256\344\277\241\345\256\232\346\227\266\351\227\256\345\245\275-python" diff --git "a/\345\276\256\344\277\241\345\256\232\346\227\266\351\227\256\345\245\275-python" "b/\345\276\256\344\277\241\345\256\232\346\227\266\351\227\256\345\245\275-python" new file mode 100644 index 0000000..e9c5734 --- /dev/null +++ "b/\345\276\256\344\277\241\345\256\232\346\227\266\351\227\256\345\245\275-python" @@ -0,0 +1,20 @@ +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() + + + -- Gitee