ValueError: dictionary update sequence element #0 has length 6; 2 is required

构造字典错误:
原代码:

yield scrapy.Request(url=each[‘sonUrls’], meta={‘meta_2’, each}, callback=self.detail_parse)

其中 meta={‘meta_2’, each} 错误,改为meta={‘meta_2’ each}

你可能感兴趣的:(python,dictionary,ValueError)