1. 首页
  2. 数据库
  3. 其它
  4. python实现对csv文件的列的内容读取

python实现对csv文件的列的内容读取

上传者: 2020-12-31 17:36:36上传 PDF文件 31.28KB 热度 29次
以下代码测试在python2.7 mac上运行成功 import csv with open('/Users/wangzhao/Downloads/test.csv', 'U') as csvfile: reader = csv.DictReader(csvfile) column = [row['Employee Name'] for row in reader] print column import csv with open('/Users/wangzhao/Downloads/test.csv', 'U') as csvfile: reader = csv.read
下载地址
用户评论