TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

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

Пребарај: #checkin

当前筛选 #checkin清除筛选
Airdropp.io

@airdropp_io · Post #464 · 29.01.2024 г., 21:16

🔥 Playbux Airdrop 🔹10 Million PBUX Token and 100,000 USDT Pool 🔹Playbux is in the Binance investment program 👉https://www.playbux.co/pre-listing-quest/?ref=Bso20iOZz00 1️⃣ Click on the link and log in directly with Gmail and connect the wallet. 2️⃣ Enter the tasks and do twitter follow, retweet tasks. Make a claim after the tasks are over. 3️⃣ You can also get points for daily check-in. #playbux#airdrop#binance#pbux#checkin

Go! Announcements

@gorwachain_announcements · Post #518 · 31.08.2024 г., 12:40

🚀 Time to Check In, Go! SmartChain AI Community! Check in now if you're yet to👇 🔗https://t.me/thegoprojectbot?start=twitter Here's an another opportunity to increase your daily dose of engagement and rewards! 🎮💰 And once you're in 1. Click "Open App" to get started 2. Tap the Go! token to collect rewards 3. Complete your daily tasks and quests to earn GoXP Most importantly, Stay active and climb your way to the top. Your participation paves the way for you 💪 #CheckIn#EarnRewards#GoSmartChain#GoTonapp ----------------- Join: 🐣X✉️Chat✉️News🤖Discord Play: 🕹️TON App💻Web App Info: 🖥Newsletter🌐Website🌐Blog

Airdropp.io

@airdropp_io · Post #465 · 29.01.2024 г., 21:17

🔥Redbrick Airdrop I found a fun airdrop. We will play a very short game and collect daily points and airdrops. 💎https://redbrickland.page.link/6ehG 🔸20M$ investment 🔸Partners with Fusionist team 🔸We collect points by logging in daily 🔸Points will turn into $BRICK tokens. 1️⃣ First, we enter the site and connect wallet in polygon network. 👉https://redbrickland.page.link/6ehG Ref code : 6ehG 2️⃣ Then we select the avatar and go to the immigraiton page. 👉https://redbrick.land/web3-portal/immigration 3️⃣ On this page we do twitter etc. tasks and play the ghost killing game for 30 seconds. 4️⃣ Then we come to the daily page and play our daily game. 👉https://redbrick.land/web3-portal/daily #redbrick#airdrop#checkin#BRICK#fusionist#gamefi