--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)
import requests
import sys
reload(sys)
sys.setdefaultencoding('utf8')
url='http://jianshu.com'
req=requests.get(url)
print(req.text)
本文标题:python利用requests获取网页源码
本文链接:https://www.haomeiwen.com/subject/hcwekqtx.html
网友评论