擅长:python、mysql、java
<pre><code>this will print you first two columns in the file
Since you have two headers you need to skip first to rows with next()
with open("data.csv", 'r') as f:
r = csv.reader(f, delimiter=',')
next(r, None) # skip the header
next(r, None) # skip the header
for row in r:
print(row[0],row[1])
7 0
8 4
8 5
8 6
</code></pre>