摘要: # -*- coding: cp936 -*-'''author:郎芭QQ:149737748'''import os,urllib2,time,sys,reimport threadfrom bs4 import BeautifulSoupstart_time=time.clock()za='<div.*</div>'a=thread.allocate()#多线程用的锁a.acquire() #设置第二部份锁为阻塞b=thread.allocate()b.acquire()#第三部分c=thread.alloc 阅读全文
posted @ 2013-06-01 11:13 郎芭 阅读(168) 评论(0) 推荐(0)
摘要: # -*- coding: cp936 -*-'''author:郎芭QQ:149737748'''import os,urllib2,time,sys,reimport threadfrom bs4 import BeautifulSoupstart_time=time.clock()za='<div.*</div>'a=thread.allocate()#多线程用的锁a.acquire() #设置第二部份锁为阻塞b=thread.allocate()b.acquire()#第三部分c=thread.alloc 阅读全文
posted @ 2013-06-01 11:11 郎芭 阅读(129) 评论(0) 推荐(0)