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

Резултати

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

Пребарај: #prizes

当前筛选 #prizes清除筛选
TONlines – News

@tonlines · Post #7687 · 02.12.2025 г., 17:35

⚡️Fanton EN: Exciting EPL Midweek Tournament! #EPL#prizes Fanton EN is hosting an exciting English Premier League tournament with a $200 prize pool. Don’t miss the matches from December 2-4, including Newcastle vs Tottenham and Fulham vs Man City. Join now with a $9 entry fee and compete for the prize! Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7608 · 25.11.2025 г., 07:41

Gatto | Official Channel: Legendary Crocottery Results Announced #raffle#prizes The Gatto | Official Channel has announced the winners of the Legendary Crocottery raffle. Luck has determined the prize recipients, who will receive their rewards within a week. Participants can check the results by finding their id in the linked table. Source: link @tonlines

GPT360

@gpt360_announcement · Post #649 · 10.01.2024 г., 10:52

Getting ready for an upcoming 𝐆𝐏𝐓𝟑𝟔𝟎 event with a $𝟑𝟎𝟎 𝐩𝐫𝐢𝐳𝐞 𝐩𝐨𝐨𝐥, we've decided to have a token giveaway! ⭐️📣 ❓ 𝐖𝐇𝐀𝐓 𝐓𝐎 𝐃𝐎: 1) Like and Retweet thisPost - https://twitter.com/GPT360_Official/status/1745035636208279760 2) Tag 3 friends in the comments 3) Add Hashtags#GPT360#Giveaway#Prizes 👑 𝐏𝐑𝐈𝐙𝐄 𝐏𝐋𝐀𝐂𝐄𝐒: 1st Place - 1500 TestNet Tokens 2nd Place - 1500 TestNet Tokens 3rd Place - 1500 TestNet Tokens All participants will enter the draw, and three lucky winners will be randomly chosen on Friday! 🎉🍀

GIVEAWAY ALERT🎉 🎁Prizes: 5 $TON for 5 random winners from the comments on X! ⏰DURATION: 48 hours to enter, so hop in now! How to join: 1. Follow us on X 2. Jump into our Telegram channel 3. Like & RT the first post 4. Tag 3 of your besties in the comments on X! ➡️Let’s go! Remember, you gotta be following our X account to win! Good luck! #Giveaway#TonEvents#Airdrop#Fun#Prizes#Friends#X

⭐️ Telegram Star Giveaway on X🧦 🎁Prizes: 500 ⭐️ Telegram Stars for 5 random winners from the comments on X! ⏰DURATION: 48 hours to enter, so hop in now! How to join: 1. Follow us on X👈 2. Jump into our Telegram channel 3. Like & RT the post 4. Tag someone in the comments on X! ➡️Let’s go! Remember, you gotta be following our X account to win! Good luck! #Giveaway#TonEvents#Airdrop#Fun#Prizes#Friends#X#TelegramStars