import threadpool
pool = threadpool.ThreadPool(10)
def fun(s):
print(s)
while 1:
params = create_num()
requests = threadpool.makeRequests(fun, params)
[pool.putRequest(req) for req in requests]
pool.wait()
1
keakon 2019-11-26 15:22:52 +08:00
第三方的库就别想着用它接口以外的东西了
|
2
Harlaus 2019-11-27 15:46:33 +08:00
没听懂你想干嘛
|