最近研究的,我用的是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
http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html 这个M 就是maximum
display width。那什么是maximum display width?看了下面的例子很容易说明了,注意zerofill :my.....
分类:
数据库 时间:
2014-05-28 04:07:12
阅读次数:
314
原题地址: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
Chrome插件开发笔记360翻译了Chrome插件开发的文档
(仍然建议出去看看)看这里http://open.chrome.360.cn/extension_dev/overview.html什么是扩展一个应用(扩展)其实是压缩在一起的一组文件,包括HTML,CSS,Javascript脚本,图...
分类:
其他好文 时间:
2014-05-28 01:49:25
阅读次数:
896
我们通常会遇到这样的需求:通过C++或其他较底层的语言实现了一个复杂的功能模块,需要搭建一个基于Web的Demo,方法查询数据。由于Python语言的强大和简洁,其用来搭建Demo非常合适,Flask框架和jinja2模块功能为python提供了方便的web开发能力。同时,python能够很方便的同...
分类:
编程语言 时间:
2014-05-28 01:01:56
阅读次数:
407
文章是从我的个人博客粘贴过来的,大家可以直接访问我的个人博客哦http://www.iwangzheng.com获取本机ip信息的命令ifconfig总是在用,这次拿到pyhton代码里,感觉python好麻烦啊,每次都要import。可以在程序里直接read出来,也可以先在命令行执行ifconfi...
分类:
编程语言 时间:
2014-05-28 00:10:30
阅读次数:
307
改脚本查看哪些ip被占用。#!/bin/bashfor i in {1..10}
//赋予i变量1-10do//干什么ping -c1 -w1 192.168.7.$i &> /dev/null //ping
192.168.7.网段 每个ip1次 显示1行全输出到无底洞if [ $? -eq 0 ...
分类:
其他好文 时间:
2014-05-28 00:04:45
阅读次数:
321