热门标签
更多>
搜索结果
查询Tags标签: nbc,共有 2条记录-
Python爬虫
import requestsresponse = requests.get("http://www.baidu.com")print(response.text) #str 有乱码response.encoding = utf8 print(response.text)print(response.content) #二进制 print(response.content.decode()) #将二进制解码import requests from bs4…
2021/10/16 11:09:39 人评论 次浏览 -
Python爬虫
import requestsresponse = requests.get("http://www.baidu.com")print(response.text) #str 有乱码response.encoding = utf8 print(response.text)print(response.content) #二进制 print(response.content.decode()) #将二进制解码import requests from bs4…
2021/10/16 11:09:39 人评论 次浏览