Python
biansutaoxiwei
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python上传文件MultipartPostHandler.py
#!/usr/bin/python #### # 02/2006 Will Holcomb <wholcomb@gmail.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Publi...2009-03-06 14:22:00 · 278 阅读 · 0 评论 -
如何使用Psyco为你的Python程序提速。
psyco加速Python执行速度的方法: 要求: 版本对照: File name Python versions Well-tested with psyco-x.y-win32-py2.2.2.exe 2.2.2 and up 2.2.2 and 2.2.3 psyco-x.y-win32-py2.3.exe 2.3 and up 2.3 ...2009-03-20 17:45:38 · 361 阅读 · 0 评论 -
如何将S60上的py文件打包成SIS安装文件
如何将S60上的py文件打包成SIS安装文件。 1.需要的软件 1)ensymble_python2.5-0.28.py , 2)Python2.5.4, 3)openssl.zip ensymble介绍: 【Tools to make PyS60 applications for Symbian S60 phones】ensymble的下载地址:http://code.google.c...2009-04-15 09:20:37 · 181 阅读 · 0 评论 -
Python的线程池实现
实现代码: #coding:utf-8import Queueimport threadingimport sysimport timeimport urllib #替我们工作的线程池中的线程class MyThread(threading.Thread): def __init__(self, workQueue, resultQueue,timeout=30, **kwargs): th...2009-04-30 15:17:04 · 187 阅读 · 0 评论 -
Python脚本
1.校内网抓老鼠程序。 2.通过飞信发送天气预报程序。2009-02-09 15:20:20 · 241 阅读 · 0 评论 -
字符串相似度算法 levenshtein distance 编辑距离算法
参考:http://www.merriampark.com/ld.htm#WHATIS http://en.wikipedia.org/wiki/Levenshtein_distance * Java * C++ * Visual Basic * Python [code="java"] Java public class Dist...2009-02-10 10:16:55 · 291 阅读 · 0 评论 -
字符串相似性算法【最长公共字符串算法】 【LCS】
#!/user/bin/env python # -*- coding: utf-8 -*- class arithmetic(): def __init__(self): pass ''' 【编辑距离算法】 【levenshtein distance】 【字符串相似度算法】 ''' def levenshtein(self,first,second): if len(firs...2009-02-12 17:10:25 · 183 阅读 · 0 评论 -
Python异常处理体系
1.Python内建异常体系结构 The class hierarchy for built-in exceptions is: BaseException +-- SystemExit +-- KeyboardInterrupt +-- GeneratorExit +-- Exception +-- StopIteration +-- StandardError...2009-02-24 11:06:06 · 260 阅读 · 0 评论
分享