上一页 1 2 3 4 5 6 7 8 9 ··· 26 下一页
摘要: 1 #coding:utf-82 3 import os4 5 6 for root,dirs,files in os.walk("D:"):7 for fileItem in files:8 print root + os.sep + fileItem结果如下 阅读全文
posted @ 2014-06-20 17:21 r3call 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 我一直觉得思路是比较重要的。前几天终于从一个充满了垃圾广告的网盘里下载到了传说中的 csdn 数据库(就是以前泄露的那个,现在被各种封杀了)我写了个一个python脚本从中提取密码(用户名和邮箱我都不需要),用来做一个字典。但是我发现,其中有很多是重复的,比如123456789之类的。所以,第一个问... 阅读全文
posted @ 2014-06-20 16:57 r3call 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 一直觉得thinkphp提供的dump函数挺好用的,但是python里面没有,就一直想着写个简单的。dir是我比较常用的一个内置函数了,但是显示效果实在有点受不了,每次我都要从大量的字符串里找到我需要的,眼都花了。所以我就想,一行显示一个就好了。所以我就写了一个模块,命名为dp 1 #!/usr/b... 阅读全文
posted @ 2014-06-20 16:43 r3call 阅读(524) 评论(1) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-06-12 23:37 r3call 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python2 # coding:utf-8import urllibimport reimport sysimport urllib2# xml => http://www.xiami.com/widget/xml-single/sid/1769215777# str... 阅读全文
posted @ 2014-05-16 20:51 r3call 阅读(395) 评论(0) 推荐(0) 编辑
摘要: p = re.compile("^((?:(2[0-4]\d)|(25[0-5])|([01]?\d\d?))\.){3}(?:(2[0-4]\d)|(255[0-5])|([01]?\d\d?))$") 阅读全文
posted @ 2014-05-12 16:47 r3call 阅读(7423) 评论(0) 推荐(0) 编辑
摘要: # From IANA IPv4 Special-Purpose Address Registry# http://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml# Update... 阅读全文
posted @ 2014-05-12 13:44 r3call 阅读(347) 评论(0) 推荐(0) 编辑
摘要: Network Working Group D. CrockfordRequest for Comments: 4627 JSON.orgCatego... 阅读全文
posted @ 2014-05-10 19:08 r3call 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 我经常用到urllib2这个库,基本上每次都要添加User-Agent 为一个模拟浏览器的值。突然想到,能不能直接修改源代码,添加User-Agent 的值。google 到https://docs.python.org/2/library/urllib2.html其中有解释说:headerssho... 阅读全文
posted @ 2014-05-06 13:38 r3call 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: // test.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include "winioctl.h"#define IOCTL_STORAGE_QU... 阅读全文
posted @ 2014-05-04 19:22 r3call 阅读(635) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 26 下一页