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

Резултати

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

Пребарај: #ingles

当前筛选 #ingles清除筛选
Repositorio data science

@repo_science · Post #3175 · 12.05.2023 г., 16:02

#ingles 🇬🇧🇺🇲 Si estas interesado en aprender inglés, puedes acceder a nuestro grupo Repo-Ingles - Aprende a hablar ingles como un nativo. - Escuela de Platzi - Curso de Ingles avanzado para Developers - Ingles desde cero ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----

Hashtags

BotsGram®

@botsgram_cu · Post #2993 · 05.09.2020 г., 17:50

¿Que puede hacer este bot? @GroupGeoLimiter_Bot Restrinja el acceso a su grupo según la ubicación. ¡Prohibir a todos los usuarios de los continentes, países, regiones o incluso ciudades que elija! Idioma: #Ingles #Administración#Grupo ( Visto en: @BotsGram_Cu )

BotsGram®

@botsgram_cu · Post #2992 · 05.09.2020 г., 17:46

¿Que puede hacer este bot? @tiktiktokrobot Sube videos o fotos a TikTok. Intercambia con gustos y disgustos. Aquí somos todos los que queremos comunicarnos, conocernos, ayudar, apoyar, hacer amigos, compartir éxitos y positivos Idioma: #Ingles#Ruso #TikTok#entretenimiento ( Visto en: @BotsGram_Cu )

BotsGram®

@botsgram_cu · Post #2990 · 05.09.2020 г., 17:34

¿Que puede hacer este bot? @AkiTGBot Akinator puede leer tu mente como por arte de magia y decirte en qué personaje estás pensando, con solo hacer algunas preguntas. Piensa en un personaje real o ficticio y Akinator intentará adivinar quién es. Idioma: #Ingles #Entretenimiento#juego#adivinar ( Visto en: @BotsGram_Cu )

BotsGram®

@botsgram_cu · Post #2976 · 20.08.2020 г., 03:14

¿Que puede hacer este bot? @picaibot Este Bot tiene una IA que hará una reconstrucción de una selfie que le envíes convirtiéndola en una obra de arte, como el ejemplo de la foto. Idioma: #Ruso#Ingles #IA#Selfie#Editor#Foto ( Visto en: @BotsGram_Cu )

BotsGram®

@botsgram_cu · Post #3833 · 23.04.2021 г., 18:57

¿Que puede hacer este bot? @VoiceShazamBot Este bot reconoce la música de un mensaje de voz y carga la versión completa de la pista directamente en Telegram, le permite encontrar información sobre ella y también escucharla en Apple Music o YouTube. Idioma: #Ingles #Herramienta#Musica#Voz #Mensaje#Buscar ( Visto en: @BotsGram_Cu )