Python查詢中國城市天氣

首先需下載中國氣象局對照表。 而後是Python代碼html #利用中國氣象局,查詢地方天氣 import requests import json class qx: def tq(self,num,y): #打開編碼對應連接 weatherUrl = "http://www.weather.com.cn/data/sk/%s.html"%y
相關文章
相關標籤/搜索