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

Резултати

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

Пребарај: #erica

当前筛选 #erica清除筛选
Trump's Ear

@trumpsear_tg · Post #1732 · 04.11.2025 г., 15:59

🇺🇸 In the USA, there are rumors around J.D. Vance and Charlie Kirk's widow Erika 💬. A new reason for speculation was their warm embrace 🤗 at a public appearance in the United States. For several days now, a short episode that took place on the stage of the University of Mississippi 🎓 has been causing a storm of discussion 🌪: a hug between Vice President J.D. Vance and Erika Kirk, the widow of Charlie Kirk, a shot activist and Trump supporter 🎤. At the Turning Point USA event 🇺🇸, Charlie Kirk's organization, now headed by Erika Kirk, Vance was invited as a speaker 🗣. When the vice president came on stage, Kirk greeted him with very warm hugs ❤️: Vance put his hands on her waist, and she ran her hand through his hair 💫. On social media 📱, they discuss not only the gesture itself, but also Erika's behavior in general after her husband's death 🕊. Some critics accuse her of inappropriate behavior and excessive openness ⚠️. Erika herself introduced J.D. Vance as "her good friend" who has similarities with her late husband 💔. #Vance#Kirk#Erica 👂More on Trump's Ear ⚠️