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 слични објави

Пребарај: #sailtogaza

当前筛选 #sailtogaza清除筛选
Freedom Flotilla Coalition

@FFC_official_channel · Post #595 · 16.07.2025 г., 11:46

Robert Martin is sailing to Gaza aboard the ‘Handala’. He reminds us that breaking Israel’s illegal siege on Gaza is the most important and urgent act that needs to be undertaken today. For Robert, joining the flotilla is a statement to the Palestinian people that they have not been forgotten as they endure a genocide while under brutal occupation - in spite of the consenting and complicit silence of the media and political establishments. For Robert, joining the flotilla is also a testament to posterity, and to future generations, that there were people who chose to act. “The world has woken up. Things are changing and I cannot wait for the day that there is a free Palestine.” Keep ‘Handala’ safe. End Israel’s Siege. #FreedomFlotilla#BreakIsraelsSiege#BreakTheSiege#SailToGaza#WomenAgainstBlockade#Handala#SolidarityWithPalestine

Freedom Flotilla Coalition

@FFC_official_channel · Post #584 · 12.07.2025 г., 11:11

At 70 years old, Vigdis Bjorvand from Norway is sailing to Gaza aboard 'Handala' to help break Israel's illegal siege - a journey she's been waiting for for years. A Palestine activist since 1978, Vigdis says she never wants her grandchild to say, “Grandma, you didn’t do anything.” She first joined 'Handala' in 2023, which did not manage to sail to Gaza, and tried again with 'Conscience' earlier this year. Now, she’s back on board, determined to deliver aid, medicine and solidarity to Palestinians in Gaza. As governments remain silent, Vigdis stands with the Palestinian people. Keep Vigdis safe. Keep 'Handala' safe. And help end Israel's illegal siege and genocide of Gaza. #FreedomFlotilla#BreakIsraelsSiege#BreakTheSiege#SailToGaza#WomenAgainstBlockade#Handala#SolidarityWithPalestine

Drones are now regularly flying over the flotilla. As Yasemin Acar, Steering Committee member of the Global Sumud Flotilla, explains: this surveillance is meant to intimidate and exhaust us. But it only underscores why our mission is urgent. For Palestinians, drones are not just cameras. They are weapons of war, used daily to surveil, intimidate, and kill. The same technology that terrorizes Gaza is now policing the Mediterranean, turning the sea into a graveyard. We will not turn back. We continue to Gaza because this is about justice, freedom, and life. #BreakTheSiege #FreePalestine #SailToGaza #GlobalMovementToGaza #GlobalSumudFlotilla

As we enter the high-risk zone, follow our mission by tracking the flotilla live on our website. #BreakTheSiege#FreePalestine#SailToGaza #AllEyesOnGaza #GlobalMovementToGaza#GlobalSumudFlotilla