TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.
...全文
1082打赏收藏
python的Post问题
为什么urllib使用post请求方式需要先进行URL编码,后进行utf-8编码。没有第二次编码会报错这是为什么? 报错信息: TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.