码迷,mamicode.com
首页 >  
搜索关键字:python long string    ( 244880个结果)
Bean、List、Map、Array、String与JSON字符串的相互转换
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
分享python分析wave, pcm音频文件
最近研究的,我用的是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
对python生成器特性使用的好例子
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类型的变量是经常用到的,而且我们常常会对其格式进行对应的各种校验,你比如,在登录注册的时候,需要验证用户名的长度,用户名的字符组成等等,其实现在也有很多第三方提供的NSString的Category老方便我们做各种判断。由于最近做的一个项目需要判断密码的格式。主要在...
分类:其他好文   时间:2014-05-28 04:14:26    阅读次数:237
一个jQuery扩展工具包
带有详尽注释的源代码:var jQuery = jQuery || {};// TODO// ###################################string操作相关函数###################################jQuery.string = jQuer...
分类:Web程序   时间:2014-05-28 04:07:56    阅读次数:373
【LeetCode】Substring with Concatenation of All Words
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
php Exception方法
getCode() 如果有,将返回收到的异常代号getMessage() 如果有,将返回收到的异常信息getFile() 返回发生异常的文件名getLine() 抛出异常的的代码行数getTrace() 一个诸如文件名、行号等信息的数组getTraceAsString() 与getTrace()返回...
分类:Web程序   时间:2014-05-28 04:02:42    阅读次数:293
[leetcode]Climbing Stairs @ Python
原题地址: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中的函数参数形式 python中函数一般有四种表现形式: 1、def function(arg1, arg2, arg3...)这种是python中最常见的一中函数参数定义形式,函数参数之间用逗号分隔,调用的时候的参数必须与定义的时候相同,且参数顺序与形参一一对应。def myfun...
分类:编程语言   时间:2014-05-28 03:15:24    阅读次数:204
[leetcode]Minimum Path Sum @ Python
原题地址: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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!