AllowOverride all#修改地方Require all granted## Note that from this point forward you must specifically allow# particular features to be enabled - so if s...
分类:
其他好文 时间:
2014-08-01 12:56:51
阅读次数:
210
尾递归和一般的递归不同在对内存的占用,普通递归创建stack累积而后计算收缩,尾递归只会占用恒量的内存(和迭代一样)。SICP中描述了一个内存占用曲线,用以上答案中的Python代码为例(普通递归):def recsum(x): if x == 1: return x else: r...
分类:
其他好文 时间:
2014-08-01 12:47:31
阅读次数:
353
Description
At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible announcements are po...
分类:
其他好文 时间:
2014-08-01 10:54:34
阅读次数:
209
Problem Description
A few days ago, Tom was tired of all the PC-games, so he went back to some old FC-games. "Hudson's Adventure Island" was his favorite which he had played thousands of times. But t...
分类:
其他好文 时间:
2014-08-01 10:53:21
阅读次数:
300
题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same re....
分类:
编程语言 时间:
2014-08-01 10:43:21
阅读次数:
266
题目:Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For exam....
分类:
编程语言 时间:
2014-08-01 10:30:01
阅读次数:
218
iOS开发Swift篇—(二)变量和常量一、语言的性能(1)根据WWDC的展示在进行复杂对象排序时Objective-C的性能是Python的2.8倍,Swift的性能是Python的3.9倍在实现 RC4加密算法时Objective-C的的性能是Python的127倍,Swift的性能是Pytho...
分类:
移动开发 时间:
2014-08-01 10:29:41
阅读次数:
273
Python 爬行Twitter用户的Friendship图...
分类:
编程语言 时间:
2014-08-01 09:19:31
阅读次数:
297
赋值:a, b, c = 'xixi', 'haha', 'hehe'连接字典:>>> s = {1:'a', 2:'b', 3:'c'}>>> s.keys()[1, 2, 3]>>> s.values()['a', 'b', 'c']>>> s.items()[(1, 'a'), (2, 'b'...
分类:
编程语言 时间:
2014-08-01 09:12:31
阅读次数:
333
抓取乐彩网历年排列5数据useLWP::Simple;useFileOperate;my$src=‘http://www.17500.cn/p5/all.php‘;my$FileOperate=FileOperate->new();my$FilePath="C:\\DocumentsandSettings\\Administrator\\桌面\\PrelTest\\保存的模块\\文本处理";#获取文件夹下所有内容#http://www.17..
分类:
Web程序 时间:
2014-08-01 07:01:51
阅读次数:
210