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

Резултати

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

Пребарај: #task2

当前筛选 #task2清除筛选
Fluent English™

@English_easyly_learn · Post #1102 · 23.08.2018 г., 17:47

✏️Task 2: The 5 types of essay questions. 1️⃣ Advantages and Disadvantages essay 2️⃣ Opinion Essays (Agree or Disagree) 3️⃣ Discussion essay (Discuss both views, often asks for your opinion) 4️⃣ Two part Question essay (or Direct Question Essay) 5️⃣ Problem Solution essay (sometimes called a Causes Solution Essay) 👌🏻Share this with your friends! and help them also IELTS effectively! #task2 @English_easyly_learn

Hashtags

Fluent English™

@English_easyly_learn · Post #1101 · 23.08.2018 г., 17:46

✏️Task 2: You need to know these rules before writing task 2 essays! 👉In the Academic IELTS writing exam task 2, there are 5 types of questions and each of these have a slightly different approach, I meant a small difference! IELTS essays are discursive essays and not the same type of essay you would have to write at University for instance. ☝🏻There is a minimum word count of 250 words and no more than 5 body paragraphs in these essays. You need to analyse the question first, find the issues in the question, plan and organise ideas, write supporting points and specific examples, paraphrase well, give a good introduction and conclusion. There is a lot to do. 👌🏻Share this with your friends! and help them also IELTS effectively! #task2 @English_easyly_learn

Hashtags

Erkinov Otabek || IELTS

@cambridgeieltsbooks · Post #4105 · 23.03.2024 г., 00:59

✅Writing Time 📝Writing task 2 insho savoli o'z ichida 3 qismga boʻlinadi va ular introduction(kirish) qismida quyidagicha o'zgartirilishi kerak. 🍇Background statement (umumiy insho mavzusi) 🍎Specific statement (aniq talab etilayotgan insho mavzusi) 🍓Question (insho savoli) ‼️Ana endi keling, insho kirish qismini qismma-qism yozib chiqaylik. 🍇 When a country develops its technology, traditional skills and ways of life die out.🔁With the development of technology, a nation loses its traditional skills and way of life. 🍎 It is pointless to try and keep them alive. 🔁Many believe that these become irrelevant and there is no use trying to maintain them. 🍓To what extent do you agree or disagree with this? 🔁I completely disagree, however, and will explain why I believe keeping a nation's traditional skills and lifestyle is important, despite the rise of new technologies. If you find it useful, don't forget to share with your friends ☺️ #writing#task2#IELTSprep ❤️Sharing is caring❤ ©️Channel:@cambridgeieltsbooks