摘要: 方法1:使用r.content,得到的是bytes型,再转为str url='http://music.baidu.com' r = requests.get(url) html=r.content html_doc=str(html,'utf-8') #html_doc=html.decode(" 阅读全文
posted @ 2020-11-09 13:43 Microtiger 阅读(375) 评论(0) 推荐(0)