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

Резултати

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

Пребарај: #freedomflotillacoalition

当前筛选 #freedomflotillacoalition清除筛选
El Pueblo Informa

@EPInforma · Post #35479 · 09.06.2025 г., 02:03

Rumbo a Gaza 🇵🇸 | 12 voluntarios de todo el mundo que navegan en el #Madleen. Una misión para romper el asedio ilegal de Israel a Gaza y establecer un corredor marítimo popular. #FreedomFlotillaCoalition Vía 📱@PiensaPrensa Síguenos t.me/Epinforma🔁 comparte

Freedom Flotilla Coalition

@FFC_official_channel · Post #64 · 02.05.2024 г., 20:52

‘Handala’ has just left Oslo and is on its way to various European ports before heading to Gaza. “‘It feels important to be able to participate in a manifestation that draws people’s attention to Israel’s genocide in Gaza”, said Stefan. Sundström is among the human rights activists and artists traveling on or meeting Handala, such as the group Nynningen, General Knas, and Karin xx, who will perform at several ports and finally in Malmö, where Eurovision is taking place. Both artists Mikael Wiehe and Daniel Lemma will be present at the reception.” Head to our website for the full press release, and follow @shiptogazanorway and @ship_togazasweden for live updates. #BreakTheSiege#Handala#FreedomFlotillaCoalition#Norway#FreeGaza#FreePalestine#WeWillSail

Freedom Flotilla Coalition

@FFC_official_channel · Post #769 · 12.09.2025 г., 11:35

@freedomflotillacoalition and @thousandmadleenstogaza are joining forces as one flotilla to challenge Israel’s illegal and inhumane blockade of Gaza. Our shared mission is rooted in solidarity and justice, standing with the Palestinian people in their struggle for freedom. Like every past mission, this flotilla is a civil intervention against Israel’s 18-year long illegal blockade on Gaza—which has now been used to manufacture a famine—and a demand for accountability. We sail because governments and corporations remain complicit in Israel’s occupation, apartheid, and genocide. All eyes on Palestine 🇵🇸 #freegaza#freepalestine#alleyesongaza#alleyesonpalestine#endtheblockade#freedomflotillacoalition#FFC#thousandmadleenstogaza

Freedom Flotilla Coalition

@FFC_official_channel · Post #215 · 19.08.2024 г., 21:03

Our objectives—to break the blockade and raise awareness of the genocide against Palestinians in Gaza—remain unchanged. We will provide updates on our next departure when we are ready to sail again. In the meantime, we urge you to join the #NoHarbourForGenocide campaign to take action against the siege on Gaza by opposing every country and company complicit in this genocide. #handala#ffc#freedomflotillacoalition#freegaza#freepalestine#endtheoccupation#breakthesiege#endtheblockade#iof#warcrimes#icc#icj