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

Резултати

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

Пребарај: #nasrallah

当前筛选 #nasrallah清除筛选
Libertà è ragione

@libertaeragione · Post #4248 · 28.09.2024 г., 08:33

#Israele#Libano Capo di Stato Maggiore dell’#IDF: “La morte di Hassan #Nasrallah non è la fine delle nostre azioni. Il messaggio è semplice: chiunque minacci i cittadini dello Stato di Israele sapremo come raggiungerlo”. @OsservatorioEsteri

Red Nile

@rednile12 · Post #11265 · 15.03.2026 г., 14:14

OSINT leaks - Syrian Mossad spy taking refuge in Lebanon's Ukrainian embassy. A terrorist with Syrian, Ukrainian and Israeli citizenship. He helped in killing Hassan Nasrallah and other terrorist attack. Credits: Journalist Radwan Mortada @cKure #Lebanon#Nasrallah#Mossad#Ukraine#Hezbollah

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4074 · 26.02.2025 г., 07:51

A historic funeral procession was held in Beirut on Sunday for late Hezbollah chiefs Hassan Nasrallah and Hashem Safieddine who were assassinated by Israel late last year. Although Israeli fighter jets flew twice at a low altitude over the hundreds of thousands crowded to mourn the Hezbollah chiefs, the masses stood unwavering chanting “Death to Israel.” #Nasrallah#NasrallahFuneral#Hezbollah#Lebanon#Israel

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4053 · 24.02.2025 г., 21:29

A historic funeral procession was held in Beirut on Sunday for late Hezbollah chiefs Hassan Nasrallah and Hashem Safieddine who were assassinated by Israel late last year. Although Israeli fighter jets flew twice at a low altitude over the hundreds of thousands crowded to mourn the Hezbollah chiefs, the masses stood unwavering chanting “Death to Israel.” #Nasrallah#NasrallahFuneral#Hezbollah#Lebanon#Israel

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3447 · 11.10.2024 г., 17:51

Journalist and geopolitical analyst Fiorella Isabel @FiorellaInMoscow tackles the latest Israeli war crimes in Gaza and Lebanon. She underlines that the assassination of Hezbollah Chief Hassan Nasrallah created more support for the Lebanese group, and that thousands of his likes will be created to fight Israel back. #Hezbollah#Nasrallah#Lebanon#Gaza#Palestine#Netanyahu#Israel

White House Watch

@WhiteHouseWatch · Post #18278 · 17.03.2026 г., 20:58

#Iran L’agenzia stampa Fars, conferma la notizia che il Segretario del Consiglio Supremo per la Sicurezza Nazionale Ali #Larijani sia morto a seguito dell’attacco israeliano. “Ali Larijani, Segretario del Consiglio Supremo per la Sicurezza Nazionale, è stato martirizzato. […] Le anime pure dei martiri hanno accolto l'anima pura di Abdul Saleh God, il martire Dr. Ali Larijani, che, dopo una vita di lotta per il progresso dell'Iran e della Rivoluzione Islamica, ha finalmente realizzato il suo desiderio di lunga data, ha risposto alla chiamata della verità e ha orgogliosamente raggiunto la grazia del martirio nelle trincee del servizio. Egli si unì all'Imam dei Martiri del Ramadan, il Comandante dei Credenti Ali (pace su di lui), e al leader della carovana del martirio e del jihad contro l'America e Israele, Sua Santità l'Ayatollah Seyyed Ali #Khamenei, al suo maestro martire, Sua Santità il Maestro Ayatollah Motahari, e ai suoi compagni martiri Seyyed Hassan #Nasrallah e Hajj Qassem #Soleimani”. @OsservatorioEsteri

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3616 · 11.11.2024 г., 11:56

For the first time, Israeli Prime Minister Benjamin Netanyahu admitted in a cabinet meeting on Sunday that he stands behind several terrorist attacks against Lebanon such as the assassination of Hezbollah chief and the pagers and walkie-talkies attacks. #Hezbollah#Nasrallah#Pagers#UnitedStates#Israel#Netanyahu

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3129 · 25.08.2024 г., 21:05

#Hezbollah Chief Sayyed Hassan #Nasrallah refuted Israeli claims about a preemptive strike ahead of “Operation Al-Arbaeen” in the #Israeli depth. He also set a condition of resuming the retaliation, which has to do with the enemy’s admitting of losses inflicted in first phase. #Lebanon#SouthLebanon#IsraeliArmy

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3247 · 19.09.2024 г., 18:41

In the first remarks after the Israeli terrorist attack against Lebanon, Hezbollah Secretary General Hassan Nasrallah termed the aggression as a declaration of war from the Israeli side. #Hezbollah#Lebanon#Nasrallah#Pagers#Israel#Mossad#Gaza#Palestine

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3122 · 25.08.2024 г., 13:46

Lebanese #Hezbollah military media releases video showing bases targeted in #Israel part of the First Phase of its response to the assassination of senior commander Fuad Shukr and killing of several civilians in #Beirut's southern suburbs on July 31. #Lebanon#SouthLebanon#Nasrallah#Gaza#Palestine#IsraeliArmy

12
ПретходнаСтраница 1 од 2Следна