- A+
所属分类:Python
#coding=utf-8
import requests
import threading
import time
print "start:" + (time.strftime("%H:%M:%S"))
def access():
for i in range(1,11):
url = 'http://drops.wooyun.org/papers/7049'
r = requests.get(url)
if r.status_code == 200:
print url
print i
#access()
threads = []
for i in xrange(5):
t = threading.Thread(target=access)
threads.append(t)
t.start()
t.join()
#way2
# for i in xrange(7):
# t = threading.Thread(target=access)
# threads.append(t)
# for i in threads:
# i.start()
# for i in threads:
# i.join()
print"end:" + (time.strftime("%H:%M:%S"))
- 我的微信
- 这是我的微信扫一扫
- 我的微信公众号
- 我的微信公众号扫一扫