找程序员男朋友的坏处?程序员的女朋友都是怎么样的( 二 )


for i in range(len(datalist)): file.write('用户'+str(i+1)+'是 --> ') file.write(datalist[i][0]) file.write('\n') file.write('段子 --> ') file.write(datalist[i][1]) file.write('\n')
发送信息这个前面说了两遍了哈!应该都会了哈
with open(filename,'r') as f: lines = f.readlines() first = lines[0] sec = lines[1].rstrip("\n") headers = {"Content-Type": "text/plain"} data = https://www.08ts.cn/{"msgtype": "text", "text": { "content": first+sec, } } r = requests.post( url='填写自己企业微信机器人的webhook',headers=headers, json=data)
这整个程序就写完了!每天提醒一次,当然你要是提醒很多次也可以的!说明你很关心你女朋友嘛!哈哈哈,好了这个就先到这了,下期见!
【找程序员男朋友的坏处?程序员的女朋友都是怎么样的】本文源代码解说链接:http://www.demodashi.com/demo/18624.html


推荐阅读