AttributeError: ‘set‘ object has no attribute ‘items‘

AttributeError: ‘set’ object has no attribute ‘items’

出现这个问题,原因可能是定义的header有问题

正确如下:
header
header={“key”:“value”}

如果是直接在请求数据中复制,很有可能会忽略键和值的冒号。

猜你喜欢

转载自blog.csdn.net/qq_39237205/article/details/124201522