已解決AttributeError set object has no attribute items(親測)

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

出現這個問題,原因可能是定義的header有問題

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

如果是直接在請求數據中複製,很有可能會忽略鍵和值的冒號。

來源:https://blog.csdn.net/Blossoming/article/details/88691085

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章