import numpy as np import os f = open("train.txt") while True: line = f.readline() #包括换行符 line = line[:-1] #去掉换行符 if line: print (line) else: break f.close()
欢迎分享,转载请注明来源:内存溢出
import numpy as np import os f = open("train.txt") while True: line = f.readline() #包括换行符 line = line[:-1] #去掉换行符 if line: print (line) else: break f.close()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)