def sleep_time(val): · print("Sleeping for ", str(val%2), "seconds") · time.sleep(val%2) · thread_pool = multiprocessing.pool.ThreadPool(10) · thread_pool.map( ...
確定! 回上一頁