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

Резултати

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

Пребарај: #iraq

当前筛选 #iraq清除筛选

伊拉克的藥材鋪 (地點: Karbala) Karbala 是巴格達以南一百公里的一個什葉派聖城。 基本上,全世界有草本植物的地方,也有自己一套的經驗醫學和本草綱目。伊拉克的「米索不達美亞」是暫時考古之中, 承認的最早出現系統及文字的人類文明, 那時他們已經懂得「做手術」。 #Iraq

Hashtags

POPULAR FRONT

@popularxfront · Post #6196 · 08.05.2026 г., 16:27

🇮🇶#Iraq: Hajaj Ahmed Hardan al-Tikriti, widely known among survivors as "Saddam Hussein’s personal butcher" was brought before the Rusafa Criminal Court in Baghdad over crimes linked to the Anfal genocide against the Kurds. A former warden at the notorious Nugra Salman prison in Iraq’s southern Muthanna province, he is accused of overseeing torture and carrying out executions, forced disappearances, starvation, and the abuse of thousands of Kurdish detainees during the late 1980s. Since his arrest on July of last year, after decades in hiding, al-Tikriti has appeared multiple times before the Rusafa Court in connection with atrocities committed at Nugra Salman prison. Around 221 relatives of Anfal victims from several Kurdish regions attended the court session wearing traditional Kurdish clothing, demanding justice for the massacres and crimes committed against the Kurdish population. Attached footage shows Hajaj in handcuffs next to the Nugra Salman Prison. (via Rudaw & @kurdishactivism_ on IG)

Hashtags

POPULAR FRONT

@popularxfront · Post #6080 · 29.04.2026 г., 06:56

🇮🇶#Iraq: The “Guardians of Blood Brigades” have struck a communication tower at the US Victoria Base in Baghdad using a fiber-optic drone armed with an RPG warhead. (via @war_noir)

Hashtags

POPULAR FRONT

@popularxfront · Post #6002 · 24.04.2026 г., 01:17

🇮🇶#Iraq: The Kurdistan National Army headquarters in Chamshari was struck by a drone last night. So far, no information has been released regarding who launched the attack. (via @KurdishFrontNews)

Hashtags

POPULAR FRONT

@popularxfront · Post #5989 · 22.04.2026 г., 21:10

🇮🇶#Iraq: Footage showing drone interceptions over Erbil in Iraqi Kurdistan after an alleged massive drone attack.

Hashtags

POPULAR FRONT

@popularxfront · Post #5850 · 10.04.2026 г., 09:18

🇮🇶#Iraq: Footage shows US forces attempting to shoot down drones over Erbil Governorate in Iraq's Kurdistan overnight. Several reports state that the drones belong to Iran-backed militias, with one of the most active groups in Iraq lately being the Guardians of Blood Brigades. (via Archer83Able on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #5817 · 08.04.2026 г., 07:59

🇮🇶#Iraq: The "Islamic Resistance in Iraq" has carried out several attacks against US bases in Iraq, as well as in the Kurdistan Region, overnight. The militants used cruise missiles and kamikaze drones in the attacks. (via @war_noir)

Hashtags

POPULAR FRONT

@popularxfront · Post #5728 · 02.04.2026 г., 23:30

🇮🇶#Iraq: Footage released by the Islamic Resistance in Iraq (IRI) shows a drone strike targeting a fuel tank at the US Victory Camp base near Baghdad Airport. (via @conflictarchive)

Hashtags

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