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

Резултати

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

Пребарај: #superglue

当前筛选 #superglue清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40342 · 16.12.2025 г., 21:25

Got stuck with super glue on your skin? Here are supposedly effective ways to safely remove it: ● Use vegetable oil to soften the glue. ● Apply petroleum jelly or hand lotion to break it down. ● Carefully use acetone (nail polish remover) to dissolve the glue. ● Try lemon juice as a natural solvent. ● Soak the affected area in warm soapy water for 10–15 minutes. ● Apply a warm compress to loosen the glue. ● Gently rub dried glue with coarse salt. ● Use a nail emery board or pumice stone to help remove glue. ● Separate stuck fingers with a flat, blunt object. ● Avoid pulling the glue off quickly to prevent skin damage. Stay safe and take your time! 🖐️🧴🔥 P.s: Let us know if and what works, the author of this post is still a little glued to the screen. Seriously, send help.. [Read more] @googlefactss #SuperGlue#SkinCare#Safety#FirstAid