码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
[leetcode]Longest Consecutive Sequence @ Python
原题地址:https://oj.leetcode.com/problems/longest-consecutive-sequence/题意:Given an unsorted array of integers, find the length of the longest consecutive ...
分类:编程语言   时间:2014-06-06 23:13:20    阅读次数:324
HTMLParser in python
You can know form the name that the HTMLParser is something used to parse HTML files. In python, there are two HTMLParsers. One is the HTMLParser clas...
分类:编程语言   时间:2014-06-05 12:46:16    阅读次数:1294
用Jfree实现条形柱状图表,java代码实现
用Jfree实现条形柱状图表,java代码实现。可经常用于报表的制作,代码自动生成后可以自由查看。可以自由配置图表的各个属性,用来达到自己的要求和目的...
分类:编程语言   时间:2014-06-04 14:31:02    阅读次数:342
在WWDC 2014上,没提到的iOS 8 八大新特性
今天凌晨1点,36氪如约为大家研磨出WWDC 2014全程 “贴身直播”(我不得不佩服牺牲个人时间,熬夜为大家奉上好文的5位氪星人:JasonZheng、WANGJINGYU、patrick、Xingyu Chen、沈超)。 在会上,苹果掌门人Tim Cook 公布惊人数字:全球范围内已卖出8亿台iOS 设备,去年新增用户1.3亿——这些成就建立在苹果出色的硬件技术,以及长期以来对软件体...
分类:移动开发   时间:2014-06-04 14:30:24    阅读次数:287
JQuery日记 6.3 JQuery遍历模块
jQuery.extend({ // 返回elem延DOM树某个方向访问的所有节点,直到遇到until条件 dir: function( elem, dir, until ) { var matched = [], truncate = until !== undefined; while ( (elem = elem[ dir ]) && elem.nodeType !== ...
分类:Web程序   时间:2014-06-04 14:08:53    阅读次数:374
projecteuler---->problem=14----Longest Collatz sequence
title: The following iterative sequence is defined for the set of positive integers: n n/2 (n is even) n 3n + 1 (n is odd) Using the rule above and starting with 13, we generate the followi...
分类:其他好文   时间:2014-06-04 13:56:33    阅读次数:254
PHP 根据IP地址获取所在城市
有这样的需求,需要根据用户的IP地址,定位用户所在的城市。 本文记录性文章,无逻辑性。有这样需求的朋友,可以直接拷贝使用。直接上代码,不需赘述。 <?php header('Content-Type:text/html;Charset=utf-8'); function GetIp(){ $realip = ''; $unknown = 'unknown'; if (i...
分类:Web程序   时间:2014-06-04 13:41:02    阅读次数:441
install Django in mac
install Eclipse & Python(pydev) in mac install django in mac $ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.1.tar.gz $ cd virtualenv-1.10.1/ $ sudo py...
分类:其他好文   时间:2014-06-04 13:05:05    阅读次数:298
Javascrpt 分页工具
本javascript pageTool1.0分页工具 有待大家检验,如果bug 或者代码问题 即时回复 哦...
分类:编程语言   时间:2014-06-04 13:03:44    阅读次数:309
监听键盘的enter键
$(document).keypress(function(e) { switch(e.which) { case 13: if(g_flag == "login"){validateLoginForm();} else if(g_flag == "registe...
分类:其他好文   时间:2014-06-03 15:32:37    阅读次数:310
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!