import requests
def dingmessage(msg):
url='https://oapi.dingtalk.com/robot/send?access_token=2c5e2b764129e936ba9c43713a588caa7eeb168c132223a91ba97d80a6fee337'
data={
'msgtype':'text',
'text':{
'content': '通知:'+msg
}
}
res=requests.post(url,json=data)