相关文章推荐
直爽的牛肉面  ·  python/openpyxl/DataVa ...·  1 周前    · 
勤奋的鸭蛋  ·  python - Set up of ...·  2 天前    · 
大力的长颈鹿  ·  python - Conda env ...·  2 天前    · 
仗义的莲藕  ·  陈德宁 副教授·  1 年前    · 
成熟的单杠  ·  python ...·  2 年前    · 
任性的滑板  ·  HTML Emoji | 菜鸟教程·  2 年前    · 
content = msg template = ' html ' url = f " https://www.pushplus.plus/send?token={token}&title={title}&content={content}&template={template} " print (url) r = requests.get(url= url) print (r.text) if __name__ == ' __main__ ' : msg = ' Life is short I use python ' send_wechat(msg) def send_wechat(msg): token = ' XXXXXXXXXXXXXXXXXX ' # 前边复制到那个token title = ' test notice title ' content = msg template = ' html ' topic = ' 1 ' url = f " http://www.pushplus.plus/send?token={token}&title={title}&content={content}&template={template}&topic={topic} " print (url) r = requests.get(url= url) print (r.text) if __name__ == ' __main__ ' : msg = ' this is a one to more lizi ' send_wechat(msg)