Return a reader object which will iterate over lines in the given
csvfile.
而文件上的read将
reads some quantity of data and returns it as a string. size is an optional
numeric argument. When size is omitted or negative, the entire
contents of the file will be read and returned; it’s your problem if
the file is twice as large as your machine’s memory.
从docs,
reader
将而文件上的
read
将所以,第一种方法,你可以用
一次处理一条线。 一般来说,您也可以对一个文件执行一行操作。在
csv模块需要逗号分隔的列,因此您可以根据设置的方式获得数据的列表或字典。在
相关问题 更多 >
编程相关推荐