Pure Python Fibonacci Numbers

2008-07-05 05:15

A while back, I came across this post, in which the author implements a couple of different algorithms to generate Fibonacci numbers in Python. What he finally ends up with is an algorithm that essentially does matrix exponentiation by repeated squaring, and it runs fairly fast.... [阅读全文]

Solving topcoder srm407 with python

2008-07-05 01:01

You can find the problem description here. In my first thinkint, I think this problem should be solved with graph algorithm. The problem can be split into follow algorithm problems:. Digraph Reachability and Transitive Closure (有向图的 ...... [阅读全文]

Python与Ruby比较

2008-07-04 23:37

Python 带有的标准模块可以对网络插槽进行初级和协议级别的通讯,比如,如果要从POP 服务器上读取电子邮件,Python 随带的库模块可以做到。另外, Python 还支持XML、HTML和CGI 库文件,所以利用它可以解析用户输入的需求,并通过网络服务器产生最佳质量 ...... [阅读全文]

Using dictionaries rather than complex if-elif-else clauses

2008-07-04 23:08

Lately, I’ve been using dictionaries as a dispatching mechanism. It seems especially elegant when I face some fairly elaborate switching logic.... [阅读全文]

Python中文全攻略(转载)

2008-07-04 22:18

1. 在Python中使用中文. 在Python中有两种默认的字符串. 阅读全文 类别:python & django & gae 查看评论.... [阅读全文]

唉!~一场虚惊!

2008-07-04 22:09

啥也不说了,还是那句话“有啥别有病,没啥别没钱!” 希望我周围的人都能够健健康康,珍爱生命! 类别:生活日志 查看评论.... [阅读全文]

把python文件编译成exe文件

2008-07-04 21:48

把python代码编译成exe文件是一件很酷的事情,有很多软件都能实现这个功能。 1. py2exe 先下载文件(链接),安装比较简单,一路下一步就行了。 创建一个例子文件foobar.py: print "foobar" 创建一个安装文件setup.py: ...... [阅读全文]

Python写的列举指定目录下所有子目录的工具

2008-07-04 21:31

星期四, 八月17, 2006 这几天因为工作需要, 又刚好在学Python, 所以就用它写了这样的一个东西. 很粗糙, 但幸能胜任我的工作. 呵呵. 它的功能是列出指定目录下的所有子文件夹. 也能指定这些文件夹必须是包含有指定扩展名文件的. 阅读全文 类别:科技 查看评论.... [阅读全文]

看Programming Python书学计算机E文

2008-07-04 18:02

php interpreter PHP编译器along with 除了某东西以外proper extension 合适的扩展treat 处理、 namely 也就是integrated development environment 集成开发环境unfamiliar 不熟悉formal 正式recommend 推荐throughout 自始至终alphabetical 按字母 ...... [阅读全文]

Python: 50个能够满足所有需要的模块

2008-07-04 18:01

Python: 50个能够满足所有需要的模块.... [阅读全文]

python perl Data::Dumper equivelant

2008-07-04 17:21

pprint module sample usage: fire up python shell: data=(1,2,3) import pprint pprint.pformat(data)... [阅读全文]

Python 3000将在今年8月份正式发布

2008-07-04 17:20

摘要: Python3000目前正在开发中,已经发布了测试版本,将在2008年8月份发布最终版本。此版本没有考虑与2.x版本的兼容,看了相关的介绍,对于此版本非常期待,尤其是对unicode的支持,将大大方便我们的开发…… 阅读全文 [新闻]中国互联网公司在哪儿.... [阅读全文]

更换主机搏斗wordpress完毕

2008-07-04 12:34

过去一个月时间,因为CPU资源占用过高,我已经被停机三次了,花了不少业余时间与wordpress的静态化搏斗,最终以时代互联拒绝支持rewrite告终。 随后估计应该清净一阵子了,谢谢fairyfish,我可以继续使用wordpress了,中途差点放弃啊。 ...... [阅读全文]

谈点Joomla!的前台模块及其管理(三)(for wutaotao)

2008-07-04 10:09

谈点Joomla!的前台模块及其管理(三)(for wutaotao) 首页热门新闻左侧菜单首页公告设置.... [阅读全文]

WordPress插件: 风度视频展示

2008-07-04 09:10

新近发现他已经抽空做成了WordPress插件的形式,视频站点或者影音娱乐站点推荐使用,已经可以随意去下载和试用了,特此广而告之一下. 切换的效果可以去风来无度的站首页体验,具体的情况我也在预告新皮特性的文章中介绍过: ...... [阅读全文]