jakeyfly
V2EX  ›  问与答

有大佬了解 Python 下的 futures 模块吗?

  •  
  •   jakeyfly · Mar 26, 2018 · 1298 views
    This topic created in 2995 days ago, the information mentioned may be changed or developed.

    futures 模块 可以设定进程 或线程最大数量 而又说是异步执行 有点不明白 异步不是单线程 吗

    futures 模块 如果执行多个任务其中一个出错了? 比如爬虫任务 用代理 IP 时有时会返回一些奇怪的东西导致程序出错,这时候就是要捕获异常重试,futures 如何实现这样的操作啊 在并发执行多个任务的时候 其中一个出异常让这个重试

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:46 · PVG 13:46 · LAX 22:46 · JFK 01:46
    ♥ Do have faith in what you're doing.