微信扫描下方的二维码阅读全文
python推送公众号消息
import requests
import json
# 微信公众号配置
APPID = '填写自己的appid'
SECRET = '填写自己的填写自己的SECRET'
TOKEN = ''
#获取和风天气
weather_url = "和风天气接口"
weater_reposnse = requests.get(weather_url)
weater_data = json.loads(weater_reposnse.text)
updateTime = weater_data["updateTime"]
daily = weater_data['daily']
tempMax = daily[0]['tempMax']
tempMin = daily[0]["tempMin"]
textDay = daily[0]......
微信扫描下方的二维码阅读全文
微信扫描下方的二维码阅读全文