#-*-coding:utf-8 -*-
#开发者:潇洒的夏夏
#QQ:1075625244
import requests
import sys
reload(sys)
sys.setdefaultencoding('utf8')
url='http://jianshu.com'
req=requests.get(url)
print(req.text)
#-*-coding:utf-8 -*-
#开发者:潇洒的夏夏
#QQ:1075625244
import requests
import sys
reload(sys)
sys.setdefaultencoding('utf8')
url='http://jianshu.com'
req=requests.get(url)
print(req.text)
本文标题:python获取网页内容Get方式
本文链接:https://www.haomeiwen.com/subject/otkekqtx.html
网友评论