目录

python

开始学习python啦。

安装

安装组件方法:下载→解压→切换到目录,然后

 python setup.py install 

安装pytc

tokyocabinet-1.4.45]# ./configure ; make ;make install
yum -y install python-setuptools
easy_install pytc
##easy_install MySQLdb
vi /etc/ld.so.conf
##add
/usr/local/lib
/usr/lib64
/opt/server/mysql/lib

ldconfig

服务器时间

import time
time.strftime("%y%m/%d/%H")
yesday = time.strftime("%Y-%m-%d", time.localtime(time.time() - 3600*24) )

资料