![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源代码
文章平均质量分 50
wwei6161
这个作者很懒,什么都没留下…
展开
-
Python读取excel的基本方法-源代码
import xdrlib, sysimport xlrd#open the excel file def open_excel(file= '111.xls'): try: data = xlrd.open_workbook(file) return data except Exception,e: print str(e)# get the excel by indexdef excel_ta原创 2014-09-17 21:39:10 · 1009 阅读 · 0 评论 -
Python命令行地址簿小程序代码
# wwei's address book python projectimport cPickle as pimport osimport sysfilename = 'addressbook.data'class Members(object): def __init__(self,name,email,tel): self.name = name self.email =原创 2014-09-17 10:58:51 · 791 阅读 · 0 评论 -
python脚本——合并word
#-*- coding: utf-8-*-import osimport sysimport fnmatchimport globfrom win32com import client as wc#将文件夹下的word文件转化为txt文件def word2txt(): path='D:\code\my_projects\project01\source'原创 2015-10-21 10:36:10 · 4247 阅读 · 0 评论 -
<think python>一些练习的答案
练习7-3原创 2015-09-24 17:28:57 · 2832 阅读 · 0 评论 -
利用jieba的一条语句提炼2016政府工作报告中的权重词语
pyhton jieba 模块的GitHub主页:https://github.com/fxsjy/jieba# encoding=utf-8import jiebaimport jieba.analysefilename='2016.txt'content = open(filename,'rb').read()tags = jieba.analyse.extract_tags(conte原创 2016-03-20 14:27:49 · 870 阅读 · 0 评论