TypeError: __init__() got an unexpected keyword argument 'strict'

使用requests发请求时发生报错 TypeError: __init__() got an unexpected keyword argument 'strict'

莫慌,不是你代码写错了,是因为请求模块requests不是最新的

只需要

pip install requests --upgrade

就OK了

猜你喜欢

转载自www.cnblogs.com/JinMuBaoBao/p/10980842.html