Reading a CSV file using Python

前端 未结 2 509
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 11:59

please tell me what\'s the problem in this code it\'s giving an error

import csv
with open(\'some.csv\', \'rb\') as f:
    reader = csv.reader(f)
    for ro         


        
2条回答
  •  清歌不尽
    2020-12-09 12:29

    from __future__ import with_statement
    

    And if that doesn't work, rewrite it to not use with in the first place.

提交回复
热议问题