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

Пребарај: #qalqilya

当前筛选 #qalqilya清除筛选
RNN Archive

@rnn_archive · Post #591 · 16.09.2023 г., 21:03

The Azzun Phenomenon: Our attentive readers may have noticed updates every now and then about settlers being injured by stones or Molotovs in the modest town of Azzun, #Qalqilya: a simple search yields about 60 such reported operations in the last year. These operations, while simple, turn out to be very effective at shattering settler security. Azzun's stone-throwing prowess is not a coincidence, and in fact, the choice to carry out these operations here is a strategic one. The town of just 8,000 residents and 9 kilometers squared—which has offered 80 prisoners and five martyrs in recent years—is located at a historically important crossroads. Yet, this small town has become a nightmare for settlers. In August, at least 25 settlers were wounded by such operations in Azzun alone, rivaling injuries of resistance strongholds such as Jenin and Nablus. Last week there, four settlers were wounded and nearly a dozen of their cars were destroyed in one day. Settlers here are specifically targeted on a major vein of zionist infrastructure: settler bypass road Route 55, passing through Azzun. This road has actually been around since 300 BC. It was established formally in 1935, and this racist road was blocked often by Palestinians during the first intifada. As a result, the occupation built a number of alternative bypass roads. In 2002 amidst the second intifada, it became a settler bypass road, with its purpose being to give settlers a Jewish-only detour such that they can avoid the apparent danger of Palestinian areas. This stone-throwing has become a major problem for the occupation, who increased its security on Qalqilya for almost two months now, arresting a number of alleged stone-throwers. Today, the steadfast resistance of Azzun continue to create nightmares for settlers despite the siege, shattering their glass, destroying their cars, and targeting them with rudimentary explosive devices made at home. In all forms, resistance increases, and Azzun marches on the path of Jenin, Nablus, Tulkarem, and Gaza.

Hashtags

Resistance News Network Mirror

@PalestineResist_Mirror · Post #4566 · 01.05.2026 г., 00:04

🚨 IOF units are conducting a widespread campaign of raids and incursions across occupied Palestine, with operations concentrated in #Nablus, #Qalqilya, and #AlKhalil. Concurrently, armed settlers are launching violent assaults with live fire against residential areas in the vicinity of Al-Arroub camp. Settler provocations are also reported across the Nablus district.

RNN Mirror

@Palresistmirror · Post #94010 · 01.05.2026 г., 00:04

🚨 IOF units are conducting a widespread campaign of raids and incursions across occupied Palestine, with operations concentrated in #Nablus, #Qalqilya, and #AlKhalil. Concurrently, armed settlers are launching violent assaults with live fire against residential areas in the vicinity of Al-Arroub camp. Settler provocations are also reported across the Nablus district.