====== python ====== * [[pytc|python操作Tokyo Cabinet]] * [[mysqldb]] 数据库操作实例 * [[python的编码]] * [[抓取与正则]] 正则表达式 * [[作为服务器shell]] * [[gtalk机器人]] * [[msn机器人]] * [[python-memcached]] * [[vim]] * [[python as shell]] * [[Find WebShell]] * [[mod_python]] apache下运行python * [[zlib]] * [[python文件绝对路径]] * [[python md5]] 开始学习python啦。 ===== 安装 ===== * [[http://hi.baidu.com/liaoxuewei2008/blog/item/c4e1d98232451f94f703a624.html|使用setuptools自动安装python模块]] [[http://peak.telecommunity.com/dist/ez_setup.py|安装此脚本]] * [[http://chrisarndt.de/projects/threadpool/|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) ) ===== 资料 ===== * http://www.python.org/ * 简明 Python 教程 http://www.woodpecker.org.cn:9081/doc/abyteofpython_cn/chinese/index.html * Dive Into Python 中文版 http://www.woodpecker.org.cn/diveintopython/index.html * Regular Expression HOWTO http://www.amk.ca/python/howto/regex/regex.html * python社区 http://wiki.woodpecker.org.cn