当前位置:首页 > 开发 > 编程语言 > Python > 正文

python csv

发表于: 2014-12-10   作者:cooler1217   来源:转载   浏览:
摘要: import xdrlib ,sys import xlrd import xlwt import csv import os # f=open('./20141212.txt','r') # #写入文件 # writer = csv.writer(open("b126.csv","wb"),quoting=csv.Q


import  xdrlib ,sys
import xlrd
import xlwt
import csv  
import os

# f=open('./20141212.txt','r')
# #写入文件  
# writer = csv.writer(open("b126.csv","wb"),quoting=csv.QUOTE_ALL)  
# contents = f.readlines() 
# # flag = 0
# for content in contents:
#     #传入list  
#     # flag = flag + 1
#     cList = content.split(",")
#     writer.writerow([str(cList[0].replace("\t","").replace("\r","").replace("\n",""))+" ",str(cList[1].replace("\t","").replace("\r","").replace("\n",""))]) 
    # break
    # if flag > 60000 and flag < 60020:
    # 	print cList


python csv

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号