server酱 python3示例

import requests
def push(SCKEY,msg):
    if SCKEY.isspace() or len(SCKEY)==0:
        return
    else:
        api = 'https://sc.ftqq.com/'+SCKEY+'.send'
        title = u"签到辣!"
        content = msg
        data = {
           "text":title,
           "desp":content
        }
        req = requests.post(api,data = data)   
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注