@kayleighmcenany · Post #2721 · 23.06.2025 г., 14:35
#MIGA @KayleighMcEnany
Hashtags
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
Пребарај: #miga
@kayleighmcenany · Post #2721 · 23.06.2025 г., 14:35
#MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2720 · 23.06.2025 г., 14:22
White House: If the Iranian regime refuses to come to a peaceful, diplomatic solution — which the President is still interested in engaging in ... why shouldn't the Iranian people take away the power of this incredibly violent regime? #MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2716 · 23.06.2025 г., 04:58
#MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2714 · 22.06.2025 г., 23:33
#MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2713 · 22.06.2025 г., 23:30
#MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2711 · 22.06.2025 г., 22:33
#MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2710 · 22.06.2025 г., 22:23
#MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2709 · 22.06.2025 г., 22:20
#MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2708 · 22.06.2025 г., 22:19
#MIGA @KayleighMcEnany
Hashtags
@kayleighmcenany · Post #2729 · 24.06.2025 г., 10:02
From an Iranian to the USA and Israel: The Islamic Republic ain’t gonna make peace—remember that. Araghchi is the regime’s lapdog, and there’s no difference between reformists and hardliners. It was the reformists that imposed the hijab in the beginning of the revolution, it was the reformist government who killed more than 5000 people in just 3 days during "Aban 98" protest. Did you see how, right after the peace announcement, they struck again—and so far six people in Beer Sheba have lost their lives? And launched another missiles after ceasefire? While they are denying these officially they are celebrating about it online and in their circles. This regime is wounded and insane; it’s handing out mass death sentences to people in Iran under the name of “espionage,” and it’s even threatening us abroad that “soon we’ll be wiped out.” Their soilders and loyalists are now in the streets of Tehran and big cities going through people's phone to arrest people who have any messages, pictures and videos in support of Trump, USA and Israel or anti regime. How do you expect to make peace with this regime?! They only understand the language of force; they’ve never played by the rules of humanity, negotiation, or law. Those still talking about dialogue are either in on the power themselves or are fooling themselves. We’re not up against a normal system—we’re facing a mafia that treats people’s lives as worthless. Peace only makes sense when both sides choose life, not when one side is solely after suppression, power, and the physical elimination of its opponents. The Islamic Republic is seeking neither peace with its own people nor with the world. The only thing it understands is resistance and cost. Real peace can only be made with the people of Iran, not with a regime that has declared war on its own people for years. Please share this message and be our vioce. #Trump#Israel#USA#Iran#War#MAGA#MIGA#Peace#Regime @KayleighMcEnany