原创 一些練習的答案

練習7-3 import math def square_root(a): x=1 while True: #print x y=(x+a/x)/2.0 if y=

原创 利用jieba的一條語句提煉2016政府工作報告中的權重詞語

python jieba 模塊的GitHub主頁:https://github.com/fxsjy/jieba # encoding=utf-8 import jieba import jieba.analyse filename='2

原创 python腳本——合併word

#-*- coding: utf-8-*- import os import sys import fnmatch import glob from win32com import client as w

原创 Python命令行地址簿小程序代碼

# wwei's address book python project import cPickle as p import os import sys filename = 'addressbook.data' class Membe

原创 Python讀取excel的基本方法-源代碼

import xdrlib, sys import xlrd #open the excel file def open_excel(file= '111.xls'): try: data = xlrd.open

原创 <think python>一些練習的答案

練習7-3 import math def square_root(a): x=1 while True: #print x y=(x+a/x)/2.0 if y==x o