用csv模块能解决你的问题,或者尝试下面的代码:
with open(filepath, "r") as fr: for line in fr: line = line.spilt() print line[3:6]
用正则表达式
声明表头#-*- coding:utf-8 -*-