标签:tsv ted 命令行 image java text idt 逗号 ble
第三章使用的数据文件:
import csv csvfile = open(‘data-text.csv‘,‘rb‘) #打开文件,只读模式 reader = csv.reader(csvfile) #读取数据 for row in reader: #输出数据 print row
在PyCharm中运行:
在控制台中使用命令行运行:
import csv csvfile = open(‘data-text.csv‘,‘rb‘) reader = csv.DictReader(csvfile) for row in reader: print row
在PyCharm中运行:
在控制台中使用命令行运行:
标签:tsv ted 命令行 image java text idt 逗号 ble
原文地址:http://www.cnblogs.com/huangtao36/p/7629823.html