0
点赞
收藏
分享

微信扫一扫

Java手写拓扑排序和拓扑排序应用拓展案例

泠之屋 2023-09-21 阅读 45
import multiprocessing

def my_function():
    # do something without arguments
    pass

if __name__ == '__main__':
    pool = multiprocessing.Pool()
    results = []
    for i in range(10):
        result = pool.apply_async(my_function)
        results.append(result)
    pool.close()
    pool.join()

举报

相关推荐

0 条评论