python requests

问题:

requests.exceptions.InvalidHeader: Value for header {Upgrade-Insecure-Requests: 1} must be of type str or bytes, not <class 'int'>

 

解决:

把int改为string类型

 

posted @ 2019-01-13 20:51  hank-li  阅读(522)  评论(0编辑  收藏  举报