1 . python3 环境

    requests  content 和text 编码格式

 

 

    python3 content 输出是 bytes  text 输出是 str

 

python 2 环境 

  requests  content 和text 编码格式

 

     

    python2  content 输出是 str    text 输出是 unicode

 

  

 

相关文章:

  • 2022-03-09
  • 2021-08-19
  • 2021-10-30
  • 2022-12-23
  • 2021-04-18
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-22
  • 2021-07-01
  • 2022-12-23
  • 2021-06-30
  • 2022-01-07
相关资源
相似解决方案