1. 程式人生 > >在程序中添加監控-給自己的微信發送特定消息

在程序中添加監控-給自己的微信發送特定消息

send Coding 消息 utf-8 import ech wan username color

# -*- coding: utf-8 -*-
# @Author : Felix Wang
# @time   : 2018/7/19 11:15

def toMyWechat(content):
    import itchat
    itchat.auto_login(hotReload=True)
    itchat.send(content, toUserName=filehelper)


toMyWechat(程序運行出錯!)
toMyWechat(爬蟲運行完畢!)

在程序中添加監控-給自己的微信發送特定消息