solve.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:qlcoder 作者: L1nwatch 项目源码 文件源码
def solve_with_pool():
    """
    ?????
    """
    manager = multiprocessing.Manager()
    pool = multiprocessing.Pool(40)
    check_codes = manager.dict()

    # ??? 1 ? 1000 ??????????
    pool.map(partial(get_verify_code, check_codes=check_codes), [i for i in range(1, 1000 + 1)])

    # ???????
    print(check_codes)
    check_codes = dict(check_codes)
    with open("result_check_code.txt", "w") as f:
        json.dump(check_codes, f)

    # ????
    vote(check_codes)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号