enumerate 函数用于遍历序列中的元素以及它们的坐标:>>> for i,j in enumerate(('a','b','c')):print i,j0 a1 b2 c>>> for i,j in enumerate([1,2,3]):print i,j0 11 22 3>>> for i,...
分类:
编程语言 时间:
2014-07-28 14:58:23
阅读次数:
237
1.apache简单介绍??我们常常要浏览网页,提供这种服务是apache。提供apache服务的软件是httpd服务。??Apache支持許多特性,大部分通过编译的模块实现。這些特性從伺服器端的程式語言支援到身份認證方案。一些通用的语言接口支持Perl,Python,Tcl, 和PHP。流行的认证...
分类:
系统相关 时间:
2014-07-28 14:56:03
阅读次数:
357
关于linux上cron服务的python封装工具
分类:
编程语言 时间:
2014-07-28 14:48:13
阅读次数:
216
题目:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S = "ADOBE....
分类:
编程语言 时间:
2014-07-28 14:42:23
阅读次数:
264
题目:You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a conca....
分类:
编程语言 时间:
2014-07-28 14:39:03
阅读次数:
1117
filter(function, iterable)map(function, iterable)reduce(function, sequence)filter将 function依次作用于iterable的每个元素,如果返回值为true, 保留元素,否则从iterable里面删除。functio...
分类:
编程语言 时间:
2014-07-28 14:30:03
阅读次数:
221
我是个PHP程序员,不过有时候觉得需要写些小软件,对于我这种不太熟悉桌面软件开发的人来说,界面问题最让我头痛。听说Qt很强大,而且是跨平台,所以决定学习它用来弥补我写桌面软件的不足。Qt一般是通过C++来调用,如果要让Python支持Qt,需要下载PyQt这个库,十几M大小,安装后就可以让Pytho...
分类:
其他好文 时间:
2014-07-28 11:36:40
阅读次数:
282
目标网址http://127.0.0.1/shentou/sqli-labs-master/Less-5/?id=1Payload的生成 1 2 MySQL >= 5.0 AND error-based - WHERE or HAVING clause 3 2 4 1...
分类:
数据库 时间:
2014-07-28 11:36:10
阅读次数:
433
在python2.5+中可以用with来保证关闭打开的文件with open('hello.txt') as f: do some file operations为什么要引入with呢?在之前如果要保证关闭文件需要这样:f = open('hello.txt')try: do some fi...
分类:
编程语言 时间:
2014-07-28 11:36:00
阅读次数:
305
题目:Given a collection of intervals, merge all overlapping intervals.For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,18].题解:这道题主要....
分类:
编程语言 时间:
2014-07-28 11:35:20
阅读次数:
239