我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用scrapy.item.Field()。
def __setitem__(self, key, value): if key not in self.fields: self.fields[key] = Field() #if key does not exist, then create a new one in self.fields (ie dynamic list) self._values[key] = value