StrangeIoC是一个超轻量级和高度可扩展的控制反转(IoC)框架,专门为C#和Unity编写。
项目地址:https://github.com/strangeioc/strangeioc
文档地址:http://strangeioc.github.io/strangeioc/TheBigStrangeHowTo.html
一些术语:http://strangeioc.git...
分类:
Web程序 时间:
2014-05-22 23:25:41
阅读次数:
565
截止目前,已完成如下功能:
1、指定某个地址,下载其页面中包含的所有链接指向的网页
主要有以下类:
1、主类MyCrawler
2、网页下载类PageDownloader
3、网页内容分类类HtmlParserTool
4、接口Filter
完整代码可见归档代码 Jediael_v0.01
或者
https://code.csdn.net/jediael_lu/d...
分类:
其他好文 时间:
2014-05-22 23:19:37
阅读次数:
268
在DAG中DFS中顶点的出栈顺序即逆拓扑序。
def topological_sort( graph ):
is_visit = dict( ( node, False ) for node in graph )
li = []
def dfs( graph, start_node ):
for end_node in...
分类:
编程语言 时间:
2014-05-22 23:12:10
阅读次数:
487
Pexpect模块:http://www.ibm.com/developerworks/cn/linux/l-cn-pexpect1/
ConfigParser模块:http://blog.chinaunix.net/uid-25890465-id-3312861.html
logging模块:http://kenby.iteye.com/blog/1162698
threading模块...
分类:
编程语言 时间:
2014-05-22 22:38:36
阅读次数:
358
最近,锤子手机把发布会的门票收入全部捐给开发OpenSSL的开源基金会。
着实让OpenSSL火了一把,其实OpenSSL对应我们程序员来说,并不陌生。...
分类:
移动开发 时间:
2014-05-22 18:42:53
阅读次数:
254
Problem 3: Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
求出最大素因子
我的python代码如下:
又不懂的,或者更好的可以留言,大家互相...
分类:
其他好文 时间:
2014-05-22 18:40:17
阅读次数:
198
import re
data = open('a.txt')
fh = open('b.txt', 'w')
"""Search the string begining with '【'"""
p = re.compile(r'\s*[\u3010]')
for each_d in data:
if re.match('\s*3\d{4}', each_d):
...
分类:
编程语言 时间:
2014-05-22 17:26:17
阅读次数:
293