Python查北京天气预报

版权声明:本文为博主原创文章,未经博主允许不得转载。如有侵权,请联系本人进行删除,谢谢! https://blog.csdn.net/dongdong0071/article/details/79259453
import requests

r = requests.get('http://www.weather.com.cn/data/sk/101010100.html')
r.encoding = 'utf-8'
print(r.text)

猜你喜欢

转载自blog.csdn.net/dongdong0071/article/details/79259453
今日推荐