#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import threadpool
import time,random
"""
安装threadpool
sudo easy_install threadpool
"""
def threadpool_test(arg):
# 做一些事情
time.sleep(0.01)
return arg
def print_result(request, result):
print "结果 %s %r" % (request.requestID, result)
if __name__ == "__main__":
data = ['test_%d' % i for i in range(20)]
pool = threadpool.ThreadPool(5)
requests = threadpool.makeRequests(threadpool_test, data, print_result)
for req in requests:
pool.putRequest(req)
pool.wait()
print '结束!'
But really if you can't learn C++ then chances are your program is going to be rubbish. And don't expect to just magic up a program and sell it for Dissertation Writing Services UK millions. It'll take years to become good enough to make good, commercial programs.
Life is not pink and more people have realized that. The larger the more people feel they are disadvantaged, have always been treated unfairly and betrayed by those around them.
whatsapp baixar gratis
Life is not pink and more people have realized that. The larger the more people feel they are disadvantaged, have always been treated unfairly and betrayed by those around them.
whatsapp baixar gratis
I know what to do so I will try. Even though my job is not right, it is an effort. To overcome it, I had to be content with life now, satisfied with what is there.
whatsapp baixar gratis
赞
赞
写的不错
写的不错
cool math games
I like it, thank you have shared
instagram app
instagram video download
写的不错,新手看看