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

Резултати

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

Пребарај: #goodluck

当前筛选 #goodluck清除筛选
Ethio-Djibouti Railway S.C.

@ethiodjiboutirailway · Post #3001 · 25.08.2025 г., 11:48

We sincerely wish you a wonderful and productive week! May this week bring you success, fulfillment, and the rewards of your hard work. 📢 By clicking the button below, you can apply for the Ethio-Djibouti Railway recruitment program for 100 train crew positions. https://edrsc.com/vacancy-2/ Ethio-Djibouti Railway Connecting Business Find us on: Facebook: https://www.facebook.com/share/15vDenutJd/?mibextid=wwXIfr Telegram: https://t.me/ethiodjiboutirailway Web: https://www.edrsc.com TikTok: @ethiodjiboutirailway Call center: 9546 #Have_a_nice_week #GoodLuck!

INHA University in Tashkent

@inha_uz · Post #7292 · 14.06.2024 г., 10:39

☄️🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠☄️ Attention all prospective students! Please kindly note that the deadline for the application submission for the second entrance exams of IUT is today, June 14, by 5 PM. This is a last chance for those who want to register for the exam now or re-submit the application in case any mistakes are found after reviewing. 📱Application platform 🖱 Please, don't hesitate to reach out to us if you have any last-minute questions or need assistance with your application via: 📞71 289 99 99 (0400) ✈️@askinhabot ➖➖➖➖➖➖➖➖➖➖ 🎬Application process tutorial Best of luck on your application process and exams! IUT Admission Team #IUTAdmissions2024#ApplicationDeadline#ProspectiveStudents#GoodLuck

☄️🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠🔠☄️ Attention all prospective students! Please kindly note that the deadline for the application submission for the second entrance exams of IUT is today, June 14, by 5 PM. This is a last chance for those who want to register for the exam now or re-submit the application in case any mistakes are found after reviewing. 📱Application platform🖱 Please, don't hesitate to reach out to us if you have any last-minute questions or need assistance with your application via: 📞71 289 99 99 (0400) ✈️@askinhabot ➖➖➖➖➖➖➖➖➖➖ 🎬Application process tutorial Best of luck on your application process and exams! IUT Admission Team #IUTAdmissions2024#ApplicationDeadline#ProspectiveStudents#GoodLuck

Luna Everly

@lunaeverly · Post #67 · 02.02.2026 г., 08:24

Headed to the office for my first internship! 👩‍💼☕️ A little nervous, but also excited for new connections and experience. Wish me luck today — I'll definitely need it! Выхожу в офис на первую практику! 👩‍💼☕️ Немного волнуюсь, но и жду новых знакомств и опыта. Пожелайте мне удачи сегодня — она точно понадобится! #LunaEverly#Internship#Workday#GoodLuck#NewExperience

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40300 · 11.12.2025 г., 19:05

“Knock on wood” is a saying people use to avoid bad luck. It may come from old beliefs that trees have spirits or from the Christian cross made of wood. Different countries have their own ways to “knock on wood” to stay lucky. For example, in Italy, people “touch iron,” and in Turkey, they knock twice and pull their earlobe. 🌳🙏🍀 [Read more] @googlefactss #KnockOnWood#GoodLuck#Superstition#Idioms#Culture