# -*- coding: utf-8 -*-"""Created on Wed Jun 04
01:21:31 2014@author: Administrator"""class Analysis: def
processExamResults(self): passes =...
分类:
编程语言 时间:
2014-06-06 13:03:57
阅读次数:
354
原题地址:https://oj.leetcode.com/problems/distinct-subsequences/题意:Given
a stringSand a stringT, count the number of distinct subsequences ofTinS.A
subseq...
分类:
编程语言 时间:
2014-06-06 09:59:43
阅读次数:
330
python中import一个模块时python解释器的搜索目录顺序:参考python帮助文档The
Module Search PathWhen a module namedspamis imported, the interpreter first
searches for a built-in...
分类:
其他好文 时间:
2014-06-06 09:45:30
阅读次数:
250
原题地址:https://oj.leetcode.com/problems/interleaving-string/题意:Givens1,s2,s3,
find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1...
分类:
编程语言 时间:
2014-06-06 07:26:08
阅读次数:
351
Windows下的Apache+Mysql+Perl/PHP/Python,一组常用来搭建动态网站或者服务器的开源软件,本身都是各自独立的程序,但是因为常被放在一起使用,拥有了越来越高的兼容度,共同组成了一个强大的Web应用程序平台。随着开源潮流的蓬勃发展,开放源代码的LAMP已经与J2EE和.Ne...
分类:
其他好文 时间:
2014-06-06 06:42:57
阅读次数:
525
import osimport syspath = "D:\emojis"for
(path,dirs,files) in os.walk(path): for filename in files: newname =
"emoji_"+filename os.re...
分类:
编程语言 时间:
2014-06-05 20:42:02
阅读次数:
391
操作符:// 用作浮点除法(对结果四舍五入)和 ** 表示乘方 eg:
2**5=32python不支持C中的自增和自减操作,eg: ++i 和 i++ 的结果都为 iraw_input()方法程序输入,所返回的值为 字符串
类型,数值须进行强制类型转换 eg:int()print()会默认为每一行...
分类:
编程语言 时间:
2014-06-05 18:37:25
阅读次数:
299
1. 下载protobuf源代码(当前最新版本为:2.5.0) #cd /opt #wget
https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz 2. 解压,编译,安装 #tar
zx...
分类:
编程语言 时间:
2014-06-05 17:44:39
阅读次数:
4474
import datetimedatetime有几个常用类:date time datetime
timedelta1. 今天日期时间(今天时间)>>> import datetime>>> now =
datetime.datetime.now()>>> print now2014-06...
分类:
编程语言 时间:
2014-06-05 16:47:38
阅读次数:
299