Python
法墨
这个作者很懒,什么都没留下…
展开
-
freebsd8.0 安装rrdtool找不到python头文件的处理
cd /usr/local/include/python2.6 ln -s /usr/local/include/pth/pth.h2010-11-30 22:17:20 · 100 阅读 · 0 评论 -
django1.3指定static静态资源目录
1、修改settings.py如下 [code="python"] import os # Additional locations of static files STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always u...2011-10-14 09:44:07 · 366 阅读 · 0 评论 -
python实时统计双网卡流量
[code="python"]#!/usr/bin/python import time def readfile(): fd = open("/proc/net/dev", "r") for line in fd.readlines(): if line.find("eth0") > 0: field = line.spli...原创 2011-10-20 09:45:00 · 508 阅读 · 0 评论 -
MySQL-python windows驱动下载 有64位版
http://www.codegood.com/ MySQL-python-1.2.2.win-amd64-py2.5.rar » 862.5 KiB - May 2, 2009 MySQLdb 1.2.2 for Windows and Python 2.5 64 bit MySQL-python-1.2.2.win-amd64-py2.6.exe » 1.0...原创 2011-12-29 12:24:40 · 264 阅读 · 0 评论 -
CentOS yum 升级 python 至 2.6
64bit rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm 32bit rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm yum install libff...原创 2011-12-30 16:03:35 · 124 阅读 · 0 评论 -
Unofficial Windows Binaries for Python Extension Packages
Unofficial Windows Binaries for Python Extension Packages by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine. This page provides 32- and 64-bit Windows bi...原创 2011-12-31 10:16:15 · 1525 阅读 · 0 评论 -
微信服务端模拟
最近开发微信接口,配合开发弄了这个微信服务端的模拟以方便调试。 # -*- coding: utf-8 -*- #/usr/bin/env python __version__ = '0.1' __author__ = 'http://weibo.com/wtmmac' ''' 微信Server模拟 ''' import sys, urllib, httpli...2013-04-01 14:02:21 · 235 阅读 · 0 评论 -
centos6.2安装ipython
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm yum install ipython原创 2012-03-31 15:26:44 · 118 阅读 · 0 评论 -
新浪微博API自动登录 Python
一个后台服务的入口,需要通过python api访问新浪微博,实现了token存储及自动更新。现分享出来,有需要的可以拿去用,自己增加业务处理。 https://github.com/wtmmac/Sina-weibo-api-access-by-python # -*- coding: utf-8 -*- #/usr/bin/env python __ve...2012-08-07 13:19:18 · 922 阅读 · 0 评论