# -*- coding: utf-8 -*-# python:2.x__author__ = 'Administrator'import sysconfig#sysconfig:解释器编译时配置#作用:访问用于构建python配置设置#版本:2.7及之后#其他:在2.7中,sysconfig已经从...
分类:
其他好文 时间:
2014-07-12 00:01:25
阅读次数:
322
语言:Python描述:使用递归实现 1 class Solution: 2 # @return an integer 3 def numTrees(self, n): 4 if n == 0: 5 return 0 6 eli...
分类:
其他好文 时间:
2014-07-11 23:44:08
阅读次数:
216
1.CAFFE调试2.CAFFE中使用protobuf3.CAFFE中使用leveldb4.CAFFE中使用boost5.实际案例6.自定义网络结构7.python wrapper
分类:
其他好文 时间:
2014-07-11 23:28:47
阅读次数:
161
http_image_filter_module是nginx提供的集成图片处理模块,支持nginx-0.7.54以后的版本,在网站访问量不是很高磁盘有限不想生成多余的图片文件的前提下可,就可以用它实时缩放图片,旋转图片,验证图片有效性以及获取图片宽高以及图片类型信息,由于是即时计算的结果,所以网站访...
分类:
其他好文 时间:
2014-07-11 22:46:02
阅读次数:
242
1、VPSMate安装# wget http://www.vpsmate.org/tools/install.py# python install.py2、安装好了VPSMate后,还要安装IUS源,执行以下命令(注意版本):yum -y install gccyum -y install gcc-...
分类:
数据库 时间:
2014-07-11 21:57:59
阅读次数:
392
1 2 3 topframe 4 5 6 7 41 42 43 44 45 46 47 48 49 50 查看51 52 管理53 维护54 55 56 {% module Work...
分类:
Web程序 时间:
2014-07-11 21:44:30
阅读次数:
352
1 m Queue import Queue 2 from gzip import GzipFile 3 from StringIO import StringIO 4 import time 5 import socket 6 class ContentEncodingProcess...
分类:
编程语言 时间:
2014-07-11 21:41:10
阅读次数:
217
只要用到MySQLdb,使用时请先安装MySQLdb,百度上可以下载!#coding=utf-8'''@author:使用python操作MySQL数据库'''import MySQLdb#import MySQLdb.cursorsconn=MySQLdb.connect(user='root',...
分类:
数据库 时间:
2014-07-11 21:12:45
阅读次数:
265
主要参考虫师的文章,但他的文章里面有一些问题说得不是很详细,并且有些我遇到的问题他也没有说明,所以记录一下我遇到的问题。下载python并安装,并配置环境变量。 下载的话,建议大家下载2.7的版本。地址是:https://www.python.org/download/releases/2.7...
分类:
编程语言 时间:
2014-07-11 20:31:01
阅读次数:
267
1.partition函数举例:>>> ‘http://www.donews.net/limodou’.partition(‘://’)(‘http’, ‘://’, ‘www.donews.net/limodou’)>>> ‘file:/a.html’.partition(‘://’)(‘file...
分类:
编程语言 时间:
2014-07-11 20:17:15
阅读次数:
295