print "nReading the entire file into a list."text_file = open("read_it.txt", "r")lines = text_file.readlines()print linesprint len(lines)for line in lines: print linetext_file.close()
欢迎分享,转载请注明来源:内存溢出
print "nReading the entire file into a list."text_file = open("read_it.txt", "r")lines = text_file.readlines()print linesprint len(lines)for line in lines: print linetext_file.close()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)