requests content 和text 编码格式

1 . python3 环境

    

 

 

    python3 content 输出是 bytes  text 输出是 str

 

python 2 环境 

  

 

     

    python2  content 输出是 str    text 输出是 unicode

 

  

 

posted @ 2021-04-15 15:13  淋哥  阅读(232)  评论(0编辑  收藏  举报