📜  在 python 代码示例中从 csv 文件访问元素

📅  最后修改于: 2022-03-11 14:45:24.911000             🧑  作者: Mango

代码示例3
import itertools
# ...
with open(filename, 'rb') as f:
     row = next(itertools.islice(csv.reader(f), row_number, row_number+1))
     print row[column_number]