import java.beans.Introspector;import
java.beans.PropertyDescriptor;import java.math.BigDecimal;import
java.math.BigInteger;import java.util.ArrayList...
分类:
Web程序 时间:
2014-05-28 04:39:42
阅读次数:
363
最近研究的,我用的是python3.3,
用matplotlib画图,下面代码演示分析pcm文件,如果是wave文件,把wave的文件头去掉就是pcm文件了。代码如下 1 # -*-
coding:utf-8 -*- 2 3 import array 4 import os 5 from matp....
分类:
编程语言 时间:
2014-05-28 04:39:05
阅读次数:
495
1.对序列进行分组的函数(摘自web.py源码utils.py文件中) 1 def
group(seq, size): 2 """ 3 Returns an iterator over a series of lists of length
size from iterable. ...
分类:
编程语言 时间:
2014-05-28 04:21:00
阅读次数:
365
在项目开发过程中,NSString类型的变量是经常用到的,而且我们常常会对其格式进行对应的各种校验,你比如,在登录注册的时候,需要验证用户名的长度,用户名的字符组成等等,其实现在也有很多第三方提供的NSString的Category老方便我们做各种判断。由于最近做的一个项目需要判断密码的格式。主要在...
分类:
其他好文 时间:
2014-05-28 04:14:26
阅读次数:
237
带有详尽注释的源代码:var jQuery = jQuery || {};// TODO//
###################################string操作相关函数###################################jQuery.string
= jQuer...
分类:
Web程序 时间:
2014-05-28 04:07:56
阅读次数:
373
You are given a string,S, and a list of
words,L, that are all of the same length. Find all starting indices of
substring(s) in S that is a concatenati...
分类:
其他好文 时间:
2014-05-28 04:03:54
阅读次数:
240
getCode() 如果有,将返回收到的异常代号getMessage()
如果有,将返回收到的异常信息getFile() 返回发生异常的文件名getLine() 抛出异常的的代码行数getTrace()
一个诸如文件名、行号等信息的数组getTraceAsString() 与getTrace()返回...
分类:
Web程序 时间:
2014-05-28 04:02:42
阅读次数:
293
原题地址:https://oj.leetcode.com/problems/climbing-stairs/题意:You
are climbing a stair case. It takesnsteps to reach to the top.Each time you can
either cl...
分类:
编程语言 时间:
2014-05-28 03:27:49
阅读次数:
267
一、python中的函数参数形式 python中函数一般有四种表现形式: 1、def
function(arg1, arg2,
arg3...)这种是python中最常见的一中函数参数定义形式,函数参数之间用逗号分隔,调用的时候的参数必须与定义的时候相同,且参数顺序与形参一一对应。def
myfun...
分类:
编程语言 时间:
2014-05-28 03:15:24
阅读次数:
204
原题地址:https://oj.leetcode.com/problems/minimum-path-sum/题意:Given
amxngrid filled with non-negative numbers, find a path from top left to bottom
right w...
分类:
编程语言 时间:
2014-05-28 03:03:13
阅读次数:
320