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

Резултати

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

Пребарај: #freepalestine

当前筛选 #freepalestine清除筛选
Yulduz Usmonova

@Yulduz_Usmonova · Post #3631 · 08.01.2025 г., 19:26

#FreePalestine Yulduz Usmonova va Mansur Agaliev tomonidan Falastindan olib kelingan ayollar va bolalarga "Shohsaroy" uylaridan 2 ta kvartira sovg'a qilindi. @Yulduz_Usmonova @YulduzIbragimovnaUsmonova

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3497 · 19.10.2024 г., 17:21

The baton he cast never touched the ground; before it could fall, it was seized by those prepared to continue the path towards Liberation. Palestine remains resilient and unwavering, ever-ready to nurture countless successors like Sinwar, ensuring the struggle endures. #FreePalestine

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3483 · 18.10.2024 г., 03:41

Martyr Yehya Sinwar faced his final moments with unwavering defiance. Clad in his fatigues, even with his right arm severed, he mustered the strength to hurl a stick at the Israeli drone recording him, a gesture of defiance in the face of overwhelming odds. From the moment he initiated the Al Aqsa Flood, he had accepted his fate with unyielding resolve. This footage serves as a potent symbol, one that will undoubtedly fuel the momentum of the rising tide. #FreePalestine

Unicorn Riot

@unicornriotninja · Post #3435 · 07.08.2025 г., 14:17

Denver, CO: #FreePalestine Sit-In Protests Zionist Ties at Center on Colfax - 2/2 [Twitter Archive, August 6, 2024]: https://unicornriot.ninja/2024/pro-palestine-anti-genocide-activists-rally-outside-denver-community-center-with-ties-to-israel/

Unicorn Riot

@unicornriotninja · Post #3434 · 07.08.2025 г., 14:17

Denver, CO: #FreePalestine Sit-In Protests Zionist Ties at Center on Colfax - 1/2 [Twitter Archive, August 6, 2024]: https://unicornriot.ninja/2024/pro-palestine-anti-genocide-activists-rally-outside-denver-community-center-with-ties-to-israel/

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3202 · 13.09.2024 г., 20:23

📍Location: Meron Mountain, northern occupied Palestine. 🔻Hezbollah Rockets rain on illegal colonial settlers after Israel killed civilians in south Lebanon hours before. Result: You reap what you sow. This is what haopens to you when you are land thieves. Leave. Now. #FreePalestine

Эртай Искаков

@ertaisfr · Post #1721 · 27.10.2023 г., 10:14

Мусульмандардын каны төгүлгөн үчүн адам укугу деп дүйнөдө кыйкыргандар унчукпай отурушат. Эртең 28-ноябрь саат 11:00 Бишкекте Горький паркында Палестина элин колдоо акциясы өтөт. Исанова менен Рыскулова кесилишинде. Акция учурунда гумжардам чогултулат. #freepalestine

123•••910
ПретходнаСтраница 1 од 10Следна