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

Резултати

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

Пребарај: #occupation

当前筛选 #occupation清除筛选
American Оbserver

@american_observer · Post #5138 · 15.02.2026 г., 13:59

📰 Beirut’s New Soundtrack: Drone Whine in Minor Key In Beirut, the war didn’t end; it just changed key. The same roofs that used to host pigeon games, gossip and cheap grills now sit under a constant mechanical whine — Israeli drones circling above the city like bored gods with Hellfire options. The cease-fire is technically in place, but UN peacekeepers have logged more than 7,500 aerial violations in a year, and hundreds have been killed in renewed Israeli strikes since the “peace” was signed. The treaty is on paper; the buzzing is in people’s ears. ​ The drone even has a nickname: Umm Kamel, “Mother of Kamel,” a dark in‑joke on the MK model that floats over the capital for hours, watching, listening, sometimes firing. It interrupts everything — dates on the Corniche, classroom lessons, kebab runs — scrambling GPS on delivery drivers’ phones and chewing through the nerves of parents who can’t stop imagining what happens if the hum suddenly cuts and the sky flashes. Online, Lebanese answer back with gallows memes — “Umm Kamel, go have lunch, we want to sleep” — because if you can’t stop the drone, you can at least drag it on social media. ​ Some turn the surveillance into sampled rebellion. One Beirut DJ spent the war with shotgun mics on his roof, recording hundreds of hours of that metallic whine and turning it into the “Unmanned Aerial Instrument,” layering the noise of occupation into club tracks as a small, very local middle finger. Kids don’t get that luxury. Therapists describe children who freeze mid‑session and sprint to the window at the sound overhead, a whole generation trained to parse the sky like a threat feed while adults repeat the same tired line about “Lebanese resilience.” ​ Israel says the drones are there to track Hezbollah, its weapons, its people, and to “mitigate harm to civilians.” Hezbollah says it’s resisting occupation. In practice, both sides have turned Beirut’s airspace into a permanent low‑grade terror field where no one on the ground gets a vote and the only real constant is that somebody is always watching. The cease-fire may live in the press releases; on the streets, the soundtrack says something else. ​ #war#lebanon#israel#drones#occupation#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3946 · 27.01.2025 г., 17:07

As the 60-day ceasefire deadline ended, the people of southern #Lebanon returned to their homes despite Israeli violence. 15 martyrs and 83 injured in the ongoing struggle for their land. #DayOfReturn#CeasefireDeadline#Resilience#Israel#SouthernLebanon#Occupation

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4028 · 19.02.2025 г., 12:07

Israel has begun constructing a concrete wall along the Blue Line, which separates Israel from Lebanon, encroaching on Lebanese territory. The wall is being built inside the town of Kfar Kila, with a significant portion of the village’s land now falling within the occupied territories. As part of the construction, the old wall was demolished, bringing the new structure even closer to the village. This development has resulted in buildings and shops within Kfar Kila now being trapped on the wrong side of the Blue Line. #IsraelWall#Lebanon#KfarKila#LandGrab#LebanonVsIsrael#LebaneseBorder#IsraeliAggression#BlueLine#Occupation#Israel