标签:style blog http ar color os sp for on
#-*- coding:utf-8 -*- import urllib import threading def func(url): status = urllib.urlopen(url).code print status urlinfo = [‘http://www.sohu.com‘,‘http://www.163.com‘,‘http://www.sina.com‘] for url in urlinfo: th = threading.Thread(target = func,args = [url]) th.start() th.join() print u‘又完事儿了。。‘
标签:style blog http ar color os sp for on
原文地址:http://www.cnblogs.com/predator-wang/p/4168638.html