Если запустить REPL с модулем asyncio, то вы входите в особый асинхронный REPL.
user@host:~$ python -m asyncio
asyncio REPL 3.12.7 ...
Use "await" directly instead of "asyncio.run()".
>>> import asyncio
>>>
В этом режиме
- создаётся и настраивается event loop
- уже импортирован asyncio
- работает await на верхнем уровне
То есть такая команда сработает без ошибок!
await asyncio.sleep(3)
Удобно для тестирования асинхронных функций без создания ивентлупов и остальной обвязки.
Работает в: 3.8+
#tricks#async
“Sayt hamma qurilmalarda chiroyli chiqishi kerak!” dedingiz-da…
Natijada 50 ta telefon, 1 ta zaryadlovchi, va 0 ta sabr😂
#DasturlashHayoti#Frontend#Responsive#Hazil
💻@dasturlash_hayoti— dasturchilar uchun eng kerakli maslahatlar, hazillar va foydali kontent!
#typescript#css#css_framework#functional_css#postcss#responsive#tailwindcss#utility_classes
Tailwind CSS is a utility-first CSS framework that lets you style websites by adding small, reusable classes directly in your HTML, instead of writing separate CSS files. It provides ready‑made utilities for layout, spacing, colors, and more, so you can build custom user interfaces quickly and consistently. Clear documentation, an active community, and contribution guidelines make it easier to learn, get help, and even contribute to the project, which can save time, reduce CSS complexity, and speed up your UI development.
https://github.com/tailwindlabs/tailwindcss