requests.exceptions.InvalidHeader: Value for header {
xxx: ('xxx',)} must be of type str or bytes, not <class 'tuple'>
检查代码后面是不是多了个逗号(,);传值的时候后面带了逗号就会变成元组了。
requests.exceptions.InvalidHeader: Value for header {
xxx: ('xxx',)} must be of type str or bytes, not <class 'tuple'>
检查代码后面是不是多了个逗号(,);传值的时候后面带了逗号就会变成元组了。