要把文件的内容全部读入
然后全部转换成列表
最好再找到所需要的一列
fh = open('qq.txt')fh.readline()data = [line[:-1].split(',') for line in fh]Ele = [item[-1] for item in data]