对于大块头的文件,不能一次性地读入然后处理,而要边读入边处理:f=open('e:/python27/name_.txt','r')while True: line=f.readline() if line=='': break print(line,end='') list1=line.split('\n') list1=list1[0].split(',') print(list1)f.close()