Ранее я делал серию постов про битовые операторы.
Вот вам ещё один наглядный пример как это используется в 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
Audi A8 e-tron launch event for which we did keynote presentations brought us a big challenge suddenly as just a night before we had to change and move contents from one screen to another due to tecnical glitch in screens setup. As you can see there are screens everywhere for immersive experience, all keynote presentations had to be made for all screens to ensure the event is grand as it's Audi . We did this event last year and we did another Audi event last month. It's fun 😊
#Keynote#presentation#design@PowerPointBBT
We worked for Coca-Cola event that happened in May this year. With so much of content changes constantly coming from them, it was tough but we did it. At the end, clients appreciated us so much for allowing last minute changes and making the event a success.
#PowerPoint#Keynote#presentation#ppt
Last year we did presentation for KIA NDC and this year we did it for its parent company Hyundai. One more addition to the brands we have served. Take a look at the presentation that we did in keynote for this 13 screen setup measuring a total of 80 feet. A seamless presentation for an immersive experience.
#PowerPoint#Keynote#presentation#ppt
Hello there, please reach out for any PPT (PowerPoint) related work. Have worked with some top brands like Samsung, Honda, KIA, Lenovo, Adobe, Google and many more.
#PowerPoint#Keynote#presentation#ppt
So, we were working on one of the number one mass-market automotive brands. It originates from Korea and has a worldwide presence.
Unfortunately happened to be a double work for us because suddenly they realised that they didn't brief us on about their brand guidelines. We had to change the whole course and it's right now under management review. Barely slept for 4 hours.
#PowerPoint#Keynote#presentation#ppt
🎤Keynote Speech by Meta & NVIDIA
📍 September 24, 2025 | Main Hall 1, CAEx, Tashkent
⏰ 14:00 – 16:00
Representatives of META and NVIDIA will deliver inspiring keynote speeches and take part in TED Talks, sharing their vision of the future of digital technologies. The sessions will highlight cutting-edge innovations in AI, immersive technologies, and digital transformation, offering new perspectives for Uzbekistan’s ICT ecosystem.
👉 Don’t miss the chance to hear directly from global tech leaders shaping the future of technology.
#ICTWeekUzbekistan2025#META#NVIDIA#AI#Innovation#Keynote#DigitalTransformation