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

Резултати

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

Пребарај: #rails

当前筛选 #rails清除筛选
ALL About RSS

@AboutRss · Post #1051 · 13.06.2021 г., 13:00

本周 RSS #玩家#教程 分享 1️⃣「搭建一个 rss 订阅 bot」 https://ednovas.xyz/2021/06/07/rss_bot/ 2️⃣「How to add a RSS feed to a #rails blog」 https://webdevchallenges.com/how-to-add-a-rss-feed-to-a-rails-blog 3️⃣「How to use #GitHub actions and Contentful webhooks to show your latest blog posts on your GitHub profile README」 https://whitep4nth3r.com/blog/how-to-github-actions-contentful-webhooks-to-show-latest-blog-posts-readme 4️⃣「How To Create RSS Feeds In #Golang」 https://medium.com/canopas/how-to-create-rss-feeds-in-golang-43a99fa302e9

GitHub Trends

@githubtrending · Post #15303 · 04.12.2025 г., 19:00

#ruby#hotwire#kanban#rails#ruby Fizzy is an open-source Kanban tool by 37signals that helps you visually track tasks and ideas using boards with columns. You can set it up easily, run it locally or with MySQL, and test it with built-in commands. It supports email previews and web push notifications for updates. Fizzy is designed to be simple, modern, and customizable, letting you self-host for full control over your data. It also offers a companion SaaS gem for billing and production setups. This means you get a flexible, transparent way to manage projects and workflows, with the option to run it yourself or use a hosted service. https://github.com/basecamp/fizzy