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

Резултати

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

Пребарај: #phone

当前筛选 #phone清除筛选
KOMPYUTER AKADEMIYASI

@Kompyuter_Akademiyasi · Post #6371 · 18.06.2024 г., 17:00

Tech quiz master #phone ℹ️ Ham IT ni ham ingliz tilini o'rganaman deganlar uchun mobil dastur (android). Ancha vaqtlar bu dastur pullik edi, bugun bepul turibdi! ✅ Ushbu dasturda turli darajalarda IT va kompyuter sohasiga oid testlarni ishlaysiz. Faktlar bo'limida esa faktlarni ko'rishingiz mumkin. ⬇️Play Marketdan yuklash 💻 Kompyuterni birga o'rganamiz ⤵️ 🛫Telegram I 📺YouTube

Hashtags

NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24152 · 27.04.2026 г., 07:01

【🚀 交易市場|郭明錤:OpenAI 要做 AI Agent 手機,聯發科、高通、立訊成關鍵供應鏈 】 #OpenAI#Phone 📍 請見報導: https://abmedia.io/openai-ai-agent-phone-qualcomm 📍 訂閱鏈新聞頻道:https://linktr.ee/abmedia.io

Libreware

@libreware · Post #1068 · 02.05.2022 г., 02:23

Red Redirect outgoing calls to Signal/Telegram/Threema. Tiny app to redirect outgoing calls to Signal/Telegram/Threema if available. You can cancel redirection by clicking on "Redirecting to.." popup. Download - https://github.com/x13a/Red/releases https://github.com/x13a/Red #new#phone @foss_Android

Hashtags

Home decor

@dzdigital3 · Post #18851 · 12.08.2025 г., 21:36

UNIWA X28 Old Man Flip #Mobile#Phone GSM Senior Big Push-Button Flip Phone Dual Sim FM Radio Price 24€ Place your order https://s.click.aliexpress.com/e/_EwCPskl

Libreware

@libreware · Post #1479 · 03.09.2025 г., 22:47

#bootloader unlock wall of shame https://github.com/melontini/bootloader-unlock-wall-of-shame updated guide, check it before buying a #phone Over the past few years, a suspicious number of companies have started to "take care of your data", aka block/strictly limit your ability to unlock the bootloader on your own devices. While this may not affect you directly, it sets a bad precedent. You never know what will get the axe next: Shizuku? ADB? Sideloading? I thought it might be a good idea to keep track of bad companies and workarounds. #android

Addis Standard

@addisstandardeng · Post #21346 · 09.02.2026 г., 08:28

Residents report #phone, #internet#outages in #North_Shewa Zone, leaving families struggling to stay connected Residents in several districts of North Shewa Zone of the #Oromia region say recent disruptions to mobile phone and internet services have left families unable to communicate, heightening concerns among civilians and students struggling to reach relatives in affected areas. Residents who spoke to Addis Standard said the communication disruption began weeks ago and has made it difficult to obtain information about the safety and well-being of family members. This is not the first time communication blackouts have affected the North Shewa Zone. In 2024, residents also reported data outages and network disruptions across parts of the zone in the Oromia region, with some saying the communication blackout persisted for nearly two months amid ongoing insurgency-related security concerns. https://addisstandard.com/?p=55093