Huge CSV and XML Files in Python January 22, 2009. Filed under python twitter facebook pinterest linkedin google+ I, like most people, never realized I'd be dealing with large files. Oh, I knew there would be some files with megabytes of data, but I…
一.csv文件的读取1 #coding=utf-8 import csv with open("F:\\script\\py_scripts\\test2.csv","r") as csvfile: read = csv.reader(csvfile) for i in read: print(i) 注意:csv文件生成的时候需要另存Excel文件选择csv格式,这样不会报错. 二.xml文件的读取 #abc.xml 1 <?xml version="…