#coding:utf-8 import re import os import requests as R from BeautifulSoup import BeautifulSoup as BS import multiprocessing import urlparse import time Q = multiprocessing.Queue() a,b = multiprocessing.Pipe() def r_mess(): print "r_mess" while 1: print 'get' # q = Q.get() print b.recv() print get print q
def s_mess(): print "s_mess" for i in xrange(984): # print i # Q.put(i) a.send(i)