09 2014 档案

摘要:1 from argparse import ArgumentParser 2 3 p = ArgumentParser(description='eg: $python mm_crawler -n 8 -o "D:/mm_pics" -l 500 \ 4 ... 阅读全文
posted @ 2014-09-04 17:34 阿驹 阅读(304) 评论(0) 推荐(0)
摘要:1 # -*- coding:utf-8 -*- 2 #! /usr/bin/env python 3 ''' 4 Created on 2014年9月2日 5 ''' 6 import gevent 7 from gevent.queue import Queue, Empty 8 import... 阅读全文
posted @ 2014-09-02 17:04 阿驹 阅读(1079) 评论(0) 推荐(0)
摘要:1 # -*- coding:utf-8 -*- 2 #! /usr/bin/env python 3 ''' 4 Created on 2014年9月2日 5 ''' 6 import gevent 7 from gevent.queue import Queue 8 import random... 阅读全文
posted @ 2014-09-02 17:02 阿驹 阅读(568) 评论(0) 推荐(0)
摘要:在windows平台编译安装python第三方库的时候,可能会遇到这种错误。解决方法如下:第一种方式,安装visual studio:如果是python2.7的,直接安装vs2008即可,express版就好了。安装了更高版本的vs也可以,不过在执行build和install命令之前,先执行如下命令... 阅读全文
posted @ 2014-09-02 14:12 阿驹 阅读(447) 评论(0) 推荐(0)
摘要:下面是递归遍历、获取树节点的方法。 1 def getTreeAllText(self): 2 '''获取树控件的全部文本''' 3 result = [] 4 treeRoot = self.treeCtrl.GetRootItem() 5 ... 阅读全文
posted @ 2014-09-01 16:05 阿驹 阅读(3151) 评论(0) 推荐(0)