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

Резултати

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

Пребарај: #israelis

当前筛选 #israelis清除筛选
Trump's Ear

@trumpsear_tg · Post #1425 · 27.08.2025 г., 18:59

Anti-government actions in Israel 🇮🇱 Protesters are blocking the roads 🚧, paralyzing traffic 🛑. Many Israeli Arabs are participating in the demonstration ✊ and are asking for permission to enlist in the army 🪖 and participate in the war against Hamas ⚔️. #arabs#israelis#war#hamas 👂More on Trump's Ear ⚠️

Addis Standard

@addisstandardeng · Post #21271 · 02.02.2026 г., 05:39

News: Protesters gather at #Knesset to demand government facilitate #Ethiopian immigration Demonstrators gathered outside the Knesset on Sunday demanding that the government facilitate the immigration of approximately 10,000 relatives of #Israelis of Ethiopian descent, given ongoing violence and strife in Ethiopia’s #Tigray region. Protesters said the government has halted immigration from Ethiopia and stopped funding for it, demanding that leaders immediately “reallocate funds to resume immigration and bring to Israel those whose situation continues to deteriorate against the backdrop of the civil war in Ethiopia,” according to a statement from the organization, Power for Aliyah, which assists Ethiopian immigrants. The group estimated that roughly 2,000 protesters came from across the country, mostly from the Ethiopian community, many of whom have family members waiting in Ethiopia to.... https://www.timesofisrael.com/protesters-gather-at-knesset-to-demand-government-facilitate-ethiopian-immigration/

MessageInABottle

@mib_messageinabottle · Post #6922 · 24.05.2024 г., 15:56

International Court of Justice (#ICJ ) has finally had enough of #Israelis and their #genocidal actions against the #Palestinians of Gaza It has finally decided to do what #SouthAfrica demanded it should have done months ago: • Demand that the #ZioNazis halt their #genocidal slaughter of innocents in #Gaza and that • Israel must ensure access to Gaza for UN genocide investigators

MessageInABottle

@mib_messageinabottle · Post #7016 · 02.06.2024 г., 14:58

#Irish politician Thomas #Gould (#SinnFein) excoriates the #Israelis in a blistering speech in Irish Parliament: “The world stands by and does nothing while 15,000 #Palestinian children have been #slaughtered..... We saw photos from when the Israelis #burned men, women and children alive.... I hope you burn in hell #Netanyahu!!"