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 слични објави

Пребарај: #user

当前筛选 #user清除筛选
BotsGram®

@botsgram_cu · Post #3295 · 16.12.2020 г., 12:09

@SangMataInfo_bot Qué puede hacer este bot? Reenviar cualquier mensaje a este chat para ver el historial del usuario. Idioma: Inglés (visto en @BotsGram_cu) #user, #chat, #group

Oneplus 13 Updates

@OnePlus13Series · Post #346 · 13.11.2025 г., 15:51

SunOS Project | Android 16 | Oneplus 13 ✍️ Details: - Version: bienor - Codename: #dodge - Type: #user#gapps - Released: 29/09/25 🔽 Download : ROM [ Gdrive | Mirror | SF ] // Images 🆘 Support group: Here ✨ Changelogs: Here 🌳 Source: Here | DT | sm8750 📸Screenshots: Here 💰 Donate: Here (Server) 🔖 Tags : #SunOS#AOSP#ROM#Official#A16#QPR0 ⚙️Installation: 🚨 Firmware is not included with this rom. Please flash fw on both slots to avoid potential issues ➡️ CMDs: fastboot flash init_boot init_boot.img fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash vendor_boot vendor_boot.img fastboot -w fastboot reboot recovery ➡️Recovery: • Factory reset (wipe/format data) • ADB sideload the rom zip & Reboot 📔Note: - Clean flash is mandatory coming from SunOS A15 and make sure remove google accounts and lockscreen password to avoid frp lock - ESIM support is dropped 👤 Developer: @Chandu_078 🔔 Updates: @OnePlus13Series 💬 Discussion: @OnePlus13SeriesChatRoom

Repositorio data science

@repo_science · Post #3180 · 12.05.2023 г., 19:53

#webScraping#Python#Scrapy 🐍 Scrapy course - Python web scraping for beginners The Scrapy #Beginners Course will teach you everything you need to learn to start scraping websites at scale using #Python Scrapy. Topics - Creating your first #Scrapy spider - #Crawling through websites & scraping data from each page - Cleaning data with Items & Item Pipelines - Saving data to CSV files, #MySQL & #Postgres#databases - Using fake #user-agents & headers to avoid getting blocked - Using #proxies to scale up your web scraping without getting banned - Deploying your #scraper to the cloud & scheduling it to run periodically 🗣️ Joe Kearney. 🔗Link 📢#youtube ⭐️ Resources ⭐️ Course Resources - Scrapy Docs - Course Guide - Course Github - The Python Scrapy Playbook ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----

BotsGram®

@botsgram_cu · Post #3290 · 15.12.2020 г., 11:47

@RulesRulesBot Qué puede hacer este bot? Este bot saludará a los nuevos miembros con un mensaje de bienvenida, y también puede especificar un texto de reglas. Idioma: Inglés (visto en @BotsGram_cu) #rules, #welcome, #start, #group, #member, #new, #join, #enter, #message, #user