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 日
第三方的库就别想着用它接口以外的东西了
|
2
Harlaus 2019 年 11 月 27 日
没听懂你想干嘛
|