码迷,mamicode.com
首页 >  
搜索关键字:python list    ( 182949个结果
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
【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
[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】定位一组元素、
前几天生病加懒惰 TAT==========================================================================1.getAttribute()方法是一个函数。它只有一个参数——你打算查询的属性的名字:2.http://www.cnblog...
分类:编程语言   时间:2014-05-27 17:39:54    阅读次数:216
.net和MVC中的json值和List<T>和DataTable的一些转换
json值和List和DataTable的一些转换
分类:Web程序   时间:2014-05-27 17:19:47    阅读次数:292
Linq递归生成easyui-tree
我把整个类放这里大加参考:public class ClassOrganization { static List org; public List GetOrgTree(string _pid) { List porg = new List(); porg = org.Where(g => g.a...
分类:其他好文   时间:2014-05-27 17:05:33    阅读次数:298
安全攻防之SQL注入(通过sqlmap搞定所有问题)
第一步:sqlmap基于Python,所以首先下载:http://yunpan.cn/QiCBLZtGGTa7U 访问密码 c26e第二步:安装Python,将sqlmap解压到Python根目录下;第三步:小试牛刀,查看sqlmap版本:python sqlmap/sqlmap.py -h第四步:...
分类:数据库   时间:2014-05-27 16:27:17    阅读次数:448
跨数据库事务
/// /// 多数据库服务器事务提交 /// /// key为connName,value为Sql语句 /// public bool ExecuteMultiTran(List sqlStrings) { bool reval = true...
分类:数据库   时间:2014-05-27 16:14:24    阅读次数:434
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!