TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #273 · 26 јул.

В стандартном модуле random есть две очень похожие функции random.randint() random.randrange() Обе возвращают случайное значение из указанного диапазона >>> random.randint(10, 20) 12 >>> random.randrange(10, 20) 17 В чем же отличие? Дело в том что у randrange() есть третий параметр step. randint() действительно возвращает случайное число из указанного диапазона. randrange() на первый взгляд делает тоже самое если передать также два параметра. Но есть указать еще и step то наш диапазон усложняется, то есть в него попадёт не полный ряд значений. Например, я хочу получить случайное значение из диапазона но только чётное число. Тогда достаточно сделать так: >>> randrange(10, 20, 2) 16 Таким образом получается что randint это частный случай randrange без указания параметра step. Еще одно важное отличие в том, что randint() включает в диапазон второе значение а randrange() нет. То есть выражение randrange(10, 20) никогда не вернёт 20, а randint(10, 20) вернёт. #tricks#basic

Резултати

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

Пребарај: #parody

当前筛选 #parody清除筛选
movies & series 🍿

@images · Post #1856 · 16.06.2025 г., 14:34

🍿 The Naked Gun: Can the craziest humor survive such an over-the-top reboot? 📆Release: August 1, 2025 🎭Genre: #Comedy · #Parody ⬇️Follow the movie The trailer just dropped. I’m loving how Neeson fully commits to the cartoonish vibe—pigtails and all—but I can’t help wondering if that style clash (dramatic action vs. full-on slapstick) will hold up for 100 minutes. Director Akiva Schaffer (Hot Rod) keeps things at a breakneck pace, packing in visual gags that verge on excess and nods to Airplane!… yet haven’t we already been hit over the head with viral jokes and nostalgic eye candy? I’d like to see more risk in the script and fewer callbacks to the original saga, so this “continuation” doesn’t just feel boxed in. Do you think the classic ZAZ formula can be reinvented, or is it destined to end up as fan-service for die-hards? 🚨🔍🎬ç