企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
- tomorrow 如果不需要同步结果,使用这个效率很高,比如爬虫 > pip3 install tomorrow ``` from tomorrow import threads @threads(30) # 使用装饰器,这个函数异步执行, 30是线程数 def get_url(q, url): q.get(url) time.sleep(30) ```