@daler_xusinov · Post #544 · 08.01.2025 г., 17:35
#3D#Modeling Blenderdagi birinchi modelim! Baho bersangiz xursand bo'lardim! @portlofio
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
Пребарај: #modeling
@daler_xusinov · Post #544 · 08.01.2025 г., 17:35
#3D#Modeling Blenderdagi birinchi modelim! Baho bersangiz xursand bo'lardim! @portlofio
@djangoproject · Post #533 · 21.12.2017 г., 14:21
http://greenteapress.com/wp/modsimpy/ Free Book: #Modeling and #Simulation in Python Modeling and Simulation in Python is an introduction to physical modeling using a #computational approach. It is organized in three parts: The first part presents discrete models, including a bikeshare system and world population growth. The second part introduces first-order systems, including models of infectious disease, thermal systems, and chemical kinetics. The third part is about second-order systems, including mechanical systems like projectiles, celestial mechanics, and rotating rigid bodies.
@githubtrending · Post #15575 · 20.03.2026 г., 11:30
#java#aerospace#flight_simulator#java#modeling#optimization#rocket#rocketry#simulation#trajectory OpenRocket is a free tool to design, visualize in 3D, and simulate model rockets with six-degree-of-freedom flight analysis, real-time data on altitude/velocity, automatic optimization, and exports for 3D printing or other programs. It works on any platform via Java. You benefit by testing rockets virtually first, saving time/money on failed builds, predicting performance accurately, and flying safer, higher with optimized designs. https://github.com/openrocket/openrocket