问题其实很简单,意思是说str类型没有items属性,items属性是字典的属性。 此处是因为headers本应为dict,实际传入了str。 做如下修改: 原文链接:https://blog.csdn.net/The_Time_Runner/article/details/101775086