kearney908

 

 

url=r\'http://www.test.com/test.html\'
html=requests.get(url,headers=header)
codetype=html.encoding#获取网页编码类型
html.encoding=\'GBK\'#更改网页编码类型
print(html.text)

 

分类:

技术点:

相关文章:

  • 2021-11-15
  • 2021-05-28
  • 2021-12-25
  • 2022-12-23
  • 2021-12-25
  • 2021-12-25
  • 2021-12-25
猜你喜欢
  • 2021-11-23
  • 2021-09-08
  • 2021-12-25
  • 2021-12-31
  • 2022-01-01
  • 2021-12-25
  • 2021-10-04
相关资源
相似解决方案