存档

‘python’ 分类的存档

speedometer出网络图`很小很强大~

2009年12月18日 没有评论
          今天在强大的网络上发先一个很小很强大的软件,出图效果很不错~~所以介绍给大家。`安装很方便“只要你的系统支持 python  但是如果你没有安装 python-urwid 不会出图,只会有数字显示~~好了下面讲安装~~
 
PS :需要 python 2.6 以上支持~
 

阅读全文…

鞋衫各式名品专卖

收藏与分享

memcached: Benchmark of 4 Python libraries

2009年9月19日 没有评论

memcached: Benchmark of 4 Python libraries

Memcached speed

Optimizations, don’t we just love them! Unfortunately most micro optimizations aren’t worth doing. The optimizations that are worth doing are those that affect everything… And if you use memcached, then memcached affects everything ;-) In this blog post I present a benchmark of 4 most popular Python memcached libraries (one of them pure Python, the 3 others C wrappers).

As my benchmark shows, there are lots of gains, basically you can speed up your memcached operations by 2x times – which is REALLY hard to do with any other optimization.

There are currently 4 Python memcached libraries and there aren’t any good benchmarks of these, so I have set a goal to benchmark these. The candidates:

阅读全文…

收藏与分享

python常用的时间方法

2009年5月18日 没有评论

我们先导入必须用到的一个module
>>> import time
设置一个时间的格式,下面会用到
>>>ISOTIMEFORMAT=’%Y-%m-%d %X’
看一下当前的时间,和其他很多语言相似这是从epoch(1970 年 1 月 1 日 00:00:00)开始到当前的秒数。
阅读全文…

简单生活。简单运动

收藏与分享
分类: python 标签: , ,