Если запустить 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
Каскадерский трюк показал водитель автомобиля #Range#Rover на ул. Стеценко.
По предварительным данным, водитель двигался по ул. Стеценко, в какой-то момент потерял управление над своим железным конём и вылетел на тротуар, после чего влетел в трамплин из снега и въехал в воздухе в бигборд. К счастью никто в этом ДТП не пострадал. Водитель утверждает, что ехал с разрешённой скоростью
🌎 In 2014, NASA’s Mars rover Curiosity recorded unusual low-frequency sounds on the Red Planet. These noises, called "pressure fluctuations," are caused by Martian winds interacting with the planet’s thin atmosphere and ground. Scientists detected these signals using a special instrument known as REMS, and the data helps track daily weather changes on Mars. ✨
#Mars⚡#soundspace⚡#rover
👉subscribe Interesting Planet
👉more Channels
#cplusplus#arducopter#ardupilot#arduplane#ardurover#ardusub#autopilot#auv#copter#drone#dronekit#mavlink#plane#robotics#ros#rov#rover#sub#uas#uav#ugv
ArduPilot is a powerful and open-source autopilot system that can control many types of vehicles, including drones, planes, helicopters, and even submarines. It offers features like autonomous flight modes, programmable missions, and support for various sensors and communication systems. This system is highly reliable and customizable, making it beneficial for users who need advanced control over their vehicles. It also has a strong community and extensive documentation, which helps users learn and improve their projects.
https://github.com/ArduPilot/ardupilot