Reading from CSVs in Python repeatedly?

前端 未结 2 496
渐次进展
渐次进展 2020-11-27 21:29

I\'m trying to check the value of extracted data against a csv I already have. It will only loop through the rows of the CSV once, I can only check one value of feed.items()

2条回答
  •  生来不讨喜
    2020-11-27 22:07

    Making orig a list avoids the need to reset/reparse the csv:

    orig = list(csv.reader(open("googlel.csv", "rb"), delimiter = ';'))
    

提交回复
热议问题