08 2012 档案

python制作图表工具,pyChart安装方法
摘要:pyChart是python的一个画图表的库,可以画常用的折线图、柱状图等统计图。官方地址为:http://home.gna.org/pychart/ 开发文档地址为:http://home.gna.org/pychart/doc/。以下为安装方法:1. 安装libxext-dev: 终端中执行sudo apt-get install libxext-dev,或用Ubuntu软件中心搜索libxext-dev安装。2. 安装Ghostscript: 下载Ghostscript源码包, 下载地址:http://down1.chinaunix.net/distfiles/ghostscript.. 阅读全文

posted @ 2012-08-20 18:16 liugoodness 阅读(4930) 评论(0) 推荐(0)

9种哈希算法代码
摘要:// 这个算法在开源的SDBM中使用,似乎对很多不同类型的数据都能得到不错的分布。unsigned int SDBMHash(const char *str){ unsigned int hash = 0 ; while (*str) { // equivalent to: hash = 65599*hash + (*str++); hash = (*str++) + (hash << 6 ) + (hash << 16 ) - hash; } return (hash & 0x7FFFFFFF );}// 从Robert ... 阅读全文

posted @ 2012-08-02 09:34 liugoodness 阅读(1349) 评论(0) 推荐(0)

导航