📜  使用 csv 模块如何读取 csv 中的特定行 - Python 代码示例

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

代码示例1
with open("test.csv", "rb") as infile:
    r = csv.reader(infile)
    for i in range(8): # count from 0 to 7
        next(r)     # and discard the rows
    row = next(r)