Если запустить 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
Eggshells add calcium carbonate to soil, helping fast-growing plants like tomatoes and peppers grow strong and reducing soil acidity. To use, dry and grind eggshells into powder, then sprinkle around plants.
Their sharp edges might keep pests like slugs and snails away, but this is not proven.
🥚🌿🐌
[Read more]
@googlefactss
#Gardening#Eggshells#Calcium#PlantCare#PestControl
Plants make ultrasonic sounds when stressed. This happens if their stems are cut or they do not get enough water. Humans cannot hear these sounds without special microphones. Scientists have recorded them and found stressed plants make more pops and clicks than healthy ones.
The noises come from tiny air bubbles forming and collapsing inside plant tissues. Aka cavitation. It is a physical reaction, not a sign of pain like animals feel.
Some animals, like mice, bats, or insects, can hear these sounds. Machines and AI can too. By “listening” to plants, AI or bots with specialized sensors can tell when a plant is stressed or needs water. Farmers could use this to care for crops earlier, before signs appear.
🌱🔊🤖
[Read more]
[Read more]
@googlefactss
#PlantScience#Ultrasound#NatureFacts#Plants#AI#PlantCare#SmartFarming#Environment#DIY