码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
JS 显示图片层
//imgFrame显示层,imgbox显示的内容 关闭 //img路径 ' width="90" height="50" onclick="showOriginal('',event);">//层的关闭按钮方法function clos...
分类:Web程序   时间:2014-06-14 17:19:35    阅读次数:262
哪些编程语言、框架/平台最受企业青睐?
日前,美国知名的技术创业孵化器公司 Y Combinator 根据 90 家企业数据统计,分析了哪些编程语言、框架以及平台最受企业欢迎。 据数据分析得出, Ruby on Rails 以微弱优势略超 Python 荣膺开发语言排行榜,Object-C (iOS)、Java、Android 分别...
分类:编程语言   时间:2014-06-14 16:45:32    阅读次数:383
JS下的复制粘贴
IE : 1 2 3 body内 1 function copyToClipboard() { 2 3 if (document.all) { //判断...
分类:Web程序   时间:2014-06-14 16:29:02    阅读次数:186
[LeetCode] Remove Duplicates from Sorted Array II
Follow up for ”Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted array A = [1,1,1,2,2,3],Your function should...
分类:其他好文   时间:2014-06-14 16:08:32    阅读次数:200
void 0 或者 undefined
Problem 在检查一个值是否为undefined的时候,你们是如果去测试的? 要是之前的我会这样子测试 function isUndefined(obj){ return obj === undefined; } 但是最近在看《javascript框架设计》这本书的时候,他用了另外一种方法,我就有点纳闷了。 function isUndefined(obj){...
分类:其他好文   时间:2014-06-14 12:50:24    阅读次数:264
[LeetCode] Search in Rotated Sorted Array II [36]
题目 Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the array. 原题链接(点我) 解题思路 这题和Search in Rotated Sorted Array问题类似,...
分类:其他好文   时间:2014-06-14 12:44:18    阅读次数:266
Javascript 设计模式 单例
一直很喜欢Js,,,今天写一个Js的单例模式实现以及用法。 1、单例模式的写法 单例模式写法相当简单: var singleTon = { m1: "memeber first ", m2: "memeber second ", f1: function () {...
分类:编程语言   时间:2014-06-14 12:17:38    阅读次数:259
input输入什么div图层显示什么
.ppp{           width:600px;      height:300px;      background-color:pink;      }                 $("document").ready(function(){             $("#ttt").keyup(          ...
分类:其他好文   时间:2014-06-14 10:07:32    阅读次数:167
用python写makefile
温馨提示:阅读本文的同学最好能了解makefile和python的编写规则。不懂的同学可以先保存在收藏夹,以便日后查看。 转载请以超链接标明:http://www.guimigame.com/thread-460-1-1.html 其实之前我一直很懒,我不想了解makefile规则,因为在linux下开发我一直使用Qt creator。(很多时候正是一些“懒人”的创造力,解放了我们的双手,显然...
分类:编程语言   时间:2014-06-14 09:28:32    阅读次数:342
python爬虫之采集360搜索的联想词
有个视频专门讲过这个爬虫,但是太罗嗦了,顺便整理下,而且到现在,360也不傻,已经进化了,采用原来的方式,多少有点bug,这个后面会说。正题如下: 语言:python2.7.6 模块:urllib,urllib2,re,time 目标:输入任意词,抓到其联想词 版本:w1 原理:在360搜索主页:http://www.so.com/,当你输入”科技“时,搜索框会列出相应的联想词或者短...
分类:编程语言   时间:2014-06-14 09:11:06    阅读次数:1111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!