码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
jquery——rite less,do more
rite less, do more.这句话想必是很多语言都提倡的。在此举三个jquery的应用体现一.绑定多个事件类型 $("div").bind("mouseover mouseout", function () { $(this).toggleClass("over"); ...
分类:Web程序   时间:2014-06-09 20:47:18    阅读次数:261
PHP面向对象之抽象
喝水不忘挖井人"; } public function voice(){ echo "我的叫声是 汪汪汪~~~~"; } public function showColor(){ echo "我是一条黑色的狗"; }}class Cat_bobo implements Animal{ publi.....
分类:Web程序   时间:2014-06-09 19:50:17    阅读次数:202
使用psutil模块获取电脑运行信息
psutil是python的一个用于获取cpu信息的模块,非常好使,以下附上官方的一些example: CPU-> Examples>>> import psutil>>> psutil.cpu_times()scputimes(user=3961.46, nice=169.729, syst...
分类:其他好文   时间:2014-06-09 19:36:32    阅读次数:418
[leetcode]Simplify Path @ Python
原题地址:https://oj.leetcode.com/problems/simplify-path/题意:Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home...
分类:编程语言   时间:2014-06-09 19:13:54    阅读次数:181
用Map-Reduce的思维处理数据
Map-reduce是一种优雅的数据处理方式,本文通过三个例子介绍如何用python在linux的管道进行map-reduce编程,本文写的所有map-reduce程序都可以原封不动的放在Hadoop下运行,很容易在大数据集上扩展。
分类:其他好文   时间:2014-06-09 19:11:44    阅读次数:253
[leetcode]Scramble String @ Python
原题地址:https://oj.leetcode.com/problems/scramble-string/题意:Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty su...
分类:编程语言   时间:2014-06-09 19:02:59    阅读次数:197
通过js动态生成文本框,怎么把文本框中的值传到java后台?
通过js动态生成文本框,怎么把文本框中的值传到java后台? 1 var lengths; 2 function insertrow2() //增加的一行方法2 3 { 4 newRow=document.all.yltable.insertRow(-1); 5 lengths = document...
分类:编程语言   时间:2014-06-09 19:01:11    阅读次数:214
python profile
1. python -m cProfile myprogram.py2. 使用import profile模块import profiledef profileTest(): ...if __name__ == "__main__": profile.run("profileTest()")3......
分类:编程语言   时间:2014-06-09 18:59:10    阅读次数:219
[leetcode]Search in Rotated Sorted Array @ Python
原题地址:https://oj.leetcode.com/problems/search-in-rotated-sorted-array/题意:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e...
分类:编程语言   时间:2014-06-09 18:43:14    阅读次数:273
JS笔试题
1,考察thisvar length = 10function fn(){ alert(this.length)}var obj = { length: 5, method: function(fn) { fn() // ? arguments[0]()...
分类:Web程序   时间:2014-06-09 16:31:11    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!