#!/usr/bin/python
# -*- coding: UTF-8 -*-
import csv
def writer ():
aa = csv.writer(file('z.csv', 'wb'))
aa.writerow(['c1', 'c2', 'c3'])
lines = [range(3) for i in range(5)]
for a in lines:
aa.writerow(a)
def reader ():
bb = csv.reader(file('z.csv', 'rb'))
for b in bb:
print b
if __name__ == '__main__':
writer()
reader()
相关推荐
python读取csv文件 要在Python中读取CSV文件,可以使用内置的csv模块或者使用pandas库
Python读取csv文件数据
python读取csv文件
python对CSV文件进行可视化-饼图
怎么用python读取csv文件 怎么用python读取csv文件 怎么用python读取csv文件 怎么用python读取csv文件
cnn2自编码器_python读取csv文件_读取csv文件_自编码_自编码器_源码.zip
python读取csv文件