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) )

资料

python/start.txt · 最后更改: 2013/12/15 16:53 由 kenvin
到顶部
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 红麦软件 红麦软件