一个快捷键
2009-10-29 13:34:00
查看原文
Win+Break , 可以呼出“我的电脑”的“属性”页。(更改环境变量的时候更方便点儿了)
Fibonacci非递归Python版
2009-10-26 12:51:00
查看原文
http://en.wikipedia.org/wiki/Fibonacci_numberdef fib(n): S=[] F={0:0,1:1} S.append(n) while S!=[]: m = S[-1] ...
【转】MySQL插入经验
2009-10-22 05:50:00
查看原文
原文:http://lxh71105321.blog.163.com/blog/static/23988844200901394611940/# 好长时间了一直在为一件事情而疑惑:为什么使用MYISAM引擎的时候,mysql的数据插入的速度这么反而变慢了。我很费解 myisam不...
【转】Python实现的HMM类
2009-10-21 09:16:00
查看原文
#!/usr/bin/env python """ HMM module This module implements simple Hidden Markov Model class. It follows the description in Chapter 6 of Jurafsky and Martin (2008) fairly closely, with one exception: in this im...
发现shedskin的example是学习算法的好材料(Python实现)
2009-10-21 04:35:00
查看原文
http://shedskin.googlecode.com/files/shedskin-examples-0.2.tgz 里面有神经网络,图算法,压缩算法,数独解法,蚁群算法等等---是初学者不可多得的参考资料
【转】几种不同语言实现蚁群算法的效率对比
2009-10-19 07:42:00
查看原文
Ant Colony Optimization for TSP in Psyco Python http://go2web0.appspot.com/_?bG10aC50bkFub2h0eXAvbW9jLmduaXJwc2RuaW0uZW1vaC5zbmlsbG9yX2NpcmUvLzpwdHRo This is a continuation of Parallel Ant Colony Optimization f...
smallseg分词在线演示(Google App Engine)
2009-10-19 05:10:00
查看原文
smallseg分词在线演示(Google App Engine) http://smallseg.appspot.com/smallseg
编译C代码为python模块(pyd)
2009-10-19 00:44:00
查看原文
做个备份,免得将来忘了 swig –python example.i python setup.py build_ext --compiler=mingw32 –inplace #setup.py from distutils.core import setup, Extension module1 = Extension('_example', sources=['example...
[转]web.py在GAE上运行的例子--一个留言本
2009-10-19 00:24:00
查看原文
http://webpy.appspot.com/ # app.yaml application: webpy version: 1 runtime: python api_version: 1 handlers: - url: /.* script: code.py ## code.py import web from google.appengine.ext import db urls = ( ...
smallseg---又一个开源python分词库
2009-10-13 08:10:00
查看原文
可自定义词典、返回登录词列表和未登录词列表、有一定的新词识别能力。 http://code.google.com/p/smallseg/ tutorial: s3 = file("text.txt").read() words = [x.rstrip() for x in file("main.dic") ] from smallseg import ...