TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #400 · 8 дек.

Три способа выполнить множество задач с asyncio Функция для примера: async def do_it(n): await asyncio.sleep(random.uniform(0.5, 1)) return n 1. Последовательный вызов async def main(): for i in range(100): result = await do_it(i) Такой вызов имеет смысл только тогда, когда результат одной задачи требуется для вызова следующей. Если они независимы, то это антипаттерн, так как аналогичен простому синхронному вызову по очереди. 2. Упорядоченный результат async def main(): tasks = [do_it(i) for i in range(100)] results = await asyncio.gather(*tasks) Выполняет корутины конкурентно и возвращает результат в виде списка. Полезен когда требуется получить результаты в том же порядке в котором задачи отправлены. 3. Результат по мере готовности tasks = [asyncio.create_task(do_it(i)) for i in range(100)] for cor in asyncio.as_completed(tasks): result = await cor Так же выполняет корутины конкурентно, но не гарантирует порядок. Результат возвращается по мере готовности, каждый отдельно. Полезен когда нужно обработать любой ответ как можно скорее. #async

Hashtags

Резултати

Пронајдени 64 слични објави

Пребарај: #deep

当前筛选 #deep清除筛选
Free Crypto Signals (Profitable Zone)

@btctradingclub · Post #26750 · 09.01.2026 г., 14:51

🚀🚀 123% Profit on #DEEP/USDT for our Premium Members on Binance Futures/Bybit/OKXX/Kucoin/Bitget ✅✅ All target completed 👁‍🗨Contact @primemod to enter the Premium Group for high quality SPOT & FUTURES Signals

Hashtags

Mountstorm notes

@mountstorm · Post #706 · 28.08.2023 г., 19:37

Don't avoid the cliches - they always work because they are clichés. In this post, you may face the author's offensive views about people's excessive repeated utterances that are widespread, calling attention to avert them. Basically, let it be on Instagram stories or Facebook profile pictures, you see people who post a picture of Yale, write Yale class of 2029 on the bio, and many similar actions. Holders could have no issue with posting them, and they are entitled to publish anything they care to do unless they don't publish political statements that can be conceived as an opposing point. By talking with people who already know the ups and downs of US admissions and hearing things I wasn't aware of, I realized that getting into a TOP-20 school requires hard work: nighttime study sessions, countless drafts of the final masterpiece, and dreadful deadlines. But everyone, not just me, can sense that people ignore the pain of those mentioned above and end up somewhere else where they have no desire to pursue their 4-year life. Rather than writing cool bio captions for NYU'28 or whichever college you dream of, spend time working on crucial components of the college application, check your essays to the expert, scrutinize what actions "99%" applicants are doing, and do the opposite or a bizarreness. My utterances may hurt souls, but I'm showing the truth (ridiculous actions). Now, get off this app and finalize your college list, which you care less to do. Two months left to catch the golden fish! #deep

Hashtags

耕读频道

@iGengdu · Post #786 · 13.02.2025 г., 12:27

#Deep Research #分享 分享:三款OpenAI Deep Research替代开源项目 https://github.com/nickscamara/open-deep-research https://github.com/mshumer/OpenDeepResearcher https://github.com/dzhng/deep-research 📢频道✈️群组☘️博客📬投稿

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна