Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2144710
  • 博文数量: 103
  • 博客积分: 206
  • 博客等级: 入伍新兵
  • 技术积分: 1819
  • 用 户 组: 普通用户
  • 注册时间: 2012-09-12 10:24
个人简介

效字当先,以质为本。

文章分类
文章存档

2019年(2)

2018年(4)

2017年(7)

2016年(3)

2015年(14)

2014年(33)

2013年(31)

2012年(9)

发布时间:2013-10-28 12:08:32

sort是在Linux里非常常用的一个命令,管排序的,集中精力,五分钟搞定sort,现在开始!1 sort的工作原理sort将文件的每一行作为一个单位,相互比较,比较原则是从首字符向后,依次按ASCII码值进行比较,最后将他们按升序输出。[rocrocket@rocrocket programming]$ cat seq.txtbananaapplepearorange.........【阅读全文】

阅读(1957) | 评论(0) | 转发(0)

发布时间:2013-10-24 11:43:47

from xlwt import * '''对excel增加行'''            def writeRow(tableObj,rowNum,tmpList,xlsStyleDict={}):    for num,o in enumerate(tmpList):        if num in xlsStyleDict:            style = xlsSty.........【阅读全文】

阅读(6297) | 评论(0) | 转发(0)

发布时间:2013-10-24 10:51:37

因为经常用到对excel的相关操作,今天就在此总结相关内容,方便大家参考。python操作excel除了读就是写。从读开始xlrdhttp://pypi.python.org/pypi/xlrd导入import xlrd打开excelfile = xlrd.open_workbook('demo.xls')查看文件中包含sheet的名称file.sheet_names()得到第一个工作表,或.........【阅读全文】

阅读(1798) | 评论(0) | 转发(0)

发布时间:2013-10-22 16:50:24

先看两段代码:1、点击(此处)折叠或打开def input_data_wow():    channels_massage = get_db_neteasewow()    if os.path.exists("wow_list_dong")==True:       &nb.........【阅读全文】

阅读(21726) | 评论(0) | 转发(0)

发布时间:2013-10-21 12:00:19

#read LogPubChannelConfig.xml logpubtypedef get_logpubtype():log_pub = ElementTree.parse(r"LogPubChannelConfig.xml")  #xml文件名log_pub_node = log_pub.find("channels")  #channels是节点for a in log_pub_node:print a.attrib['channelName'],a.attrib['channelId'],a.attrib['pubFormatType'].........【阅读全文】

阅读(8641) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

aishiyue2014-06-17 12:05

路过 学习了

回复  |  举报

dsy8510092013-08-29 16:49

电影vs程序员:学习了,留下脚印

我新手,多多支持哦~~~~

回复  |  举报

电影vs程序员2013-08-28 17:21

学习了,留下脚印

回复  |  举报
留言热议
请登录后留言。

登录 注册