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

Резултати

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

Пребарај: #eprp

当前筛选 #eprp清除筛选
Borkena

@borkena · Post #5288 · 19.11.2025 г., 06:07

EPRP Central Committee Meeting, Vows To Intensify Its Struggle For Ethiopians. Read more. https://borkena.com/2025/11/19/eprp-central-committee-meeting-vows-to-intensify-its-struggle-for-ethiopians/#Ethiopia#Politics#EPRP

Addis Standard

@addisstandardeng · Post #21371 · 11.02.2026 г., 14:05

News: #EPRP says politician #Yeshiwas Assefa arrested, calls for immediate release The #Ethiopian People’s Revolutionary Party (EPRP) has announced that politician Yeshiwas Assefa has been arrested, saying it confirmed the development through his family members. In a statement issued today, the party said Yeshiwas was taken into custody yesterday, describing the arrest as part of what it called the government’s continued crackdown on citizens engaged in peaceful political activity. “This is one of the countless acts that demonstrate the government’s ongoing suppression of citizens engaging in peaceful political activities,” the statement read. The EPRP further argued that such actions cast doubt on the credibility of the upcoming elections, which ruling party officials have repeatedly pledged will be free, fair and democratic. Instead, the party said, the current https://web.facebook.com/AddisstandardEng/posts/pfbid0haYBwZFd8QeABk6i1v9kN4LtHyVXkPGG4mFcjx4T6UPUAx1SVkJ5PCi2FpXQ74Col

Borkena

@borkena · Post #5876 · 27.02.2026 г., 10:14

የሕዝብ መከራ እያደር መክበዱ አሳሳቢ ነው ሲል ትብብር ለኢትዮጵያ አንድነት አስታወቀ። መንግሥት ዜጎችን መጠበቅ ካልቻለ ሕዝብ ተደራጅቶ በሕጋዊ መንገድ ራሱን ይጠብቅ ብሏል። ሙሉ መግለጫው ከላይ ተያይዟል። #Ethiopia#AddisAababa#EPRP#Politics

Borkena

@borkena · Post #5858 · 25.02.2026 г., 18:43

ረ/ፕ ሲሳይ አውግቸው በዋስ ተለቆ ሲወጣ ዳግም በታጠቁ ሀይሎች ታፍኖ ተወሰደ። ለአመታት በግፍ እስር ላይ የነበረው ረ/ፕ ሲሳይ አውግቸው በዋስ እንዲለቀቅ ሰኞ የካቲት 16 ቀን 2018 ዓ.ም ከተወሰነና በዛሬው ዕለት ከቀኑ 11 ሰኣት ገደማ ሂደቱን ጨርሶ ከወጣ በኋላ ወድያውኑ በታጠቁና ጭምብል በለበሱ የመንግስት ኃይሎች መስታወቱ ጥቁር በሆነ መኪና ከቂሊንጦ ማረሚያ ቤት በር ላይ ታፍኖ ወዳልታወቀ ቦታ መወሰዱን ተሰምቷል። የኢትዮጵያ ሕዝባዊ አብዮታዊ ፓርቲ - ኢሕአፓ፤ ብልጽግና ሰላማዊ ዜጎች፣ ፖለቲከኞች፣ ጋዜጠኞች እና የሰብዓዊ መብት ተሟጋቾች ላይ የሚፈጽመው የግፍ እስር አልበቃ ብሎት በተደጋጋሚ አፈናዎችን ማድረጉን ተመልክቻለሁ ብሏል። ፓርቲያችው መንግስት ያፈነውን ረ/ፕ ሲሳይ አውግቸው በአስቸኳይ በሙሉ ደህንነት እንዲለቅ እና አሁንም በግፍ እስር ላይ የሚገኙ ዜጎችን ያለምንም ቅድመ ሁኔታ በአስቸኳይ እንዲፈታ በጽኑ አሳስቧል። የሰብዓዊ እና ዴሞክራሲያዊ መብቶች ጉዳይ ግድ ይለናል የሚሉ ተቋማት እና ዜጎችም ይህንንና መሰል የብልጽግና መንግስት ወንጀሎችን በብርቱ እንዲያወግዙና ስለ ሰውነት ክብር በምናደርገው ትግል አጋርነታቸውን እንዲያሳዩ ጥሪ ጥሪ አቅርቧል። #Ethiopia#AddisAbaba#EPRP#Ethiopiannews#news#ዜና

Addis Standard

@addisstandardeng · Post #22044 · 17.04.2026 г., 09:53

News: #EPRP signals readiness to bypass electoral board for nationwide protests Ethiopian People’s Revolutionary Party says it will proceed with planned demonstrations in ten cities on 8 May, 2026, even if it does not receive approval from the National Election Board of Ethiopia, citing constitutional guarantees on the right to assembly. Speaking to Addis Standard, #Mistireslassie_Tamrat, EPRP’s General Secretary, said the party had formally notified #NEBE ahead of the planned protests but has yet to receive any response. “Regarding the letter we submitted to the Electoral Board, we have not received any response so far; they haven’t notified us of anything, and we are still waiting,” she said. Despite the lack of communication, Mistireslassie indicated that the party is prepared to move forward outside the electoral framework if necessary. “If this demonstration cannot proceed through the Electoral Board's framework, we will Read more: https://addisstandard.com/?p=56537

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