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

Резултати

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

Пребарај: #infonewswar

当前筛选 #infonewswar清除筛选
New Eastern Outlook

@neweasternoutlook · Post #11932 · 15.01.2026 г., 09:01

🇺🇸🇮🇷Washington’s War on Iran: The Importance of Defending Information Space The latest unrest in Iran highlights how control over information infrastructure has become a central instrument of US power projection in the 21st century ✍️Author: Brian Berletic Geopolitical analyst and researcher on US foreign policy and information warfare ➡️Recent protests in Iran cannot be understood solely through the lens of domestic dissatisfaction, as they unfold within a long-documented US strategy aimed at destabilizing the Iranian state. Since at least the late 2000s, American policy planning has openly emphasized support for uprisings, ethnic fragmentation, and proxy violence as tools to weaken Tehran. Evidence emerging during the January 2026 unrest—including open rhetorical support from US leadership, the involvement of armed groups, and reliance on foreign-controlled communication systems—points to continuity rather than improvisation in Washington’s approach toward Iran. While the multipolar world joins to discuss cooperation across the traditional spheres of national security, urgent attention to securing of the globe’s information space from US influence and control is required ➡️Central to this strategy is the weaponization of information space. US-based platforms, satellite communication networks, and digital infrastructure have repeatedly functioned as force multipliers for political interference, from Eastern Europe to the Arab world and now Iran. The use of systems such as Starlink to bypass state controls, coordinate unrest, and maintain links with external sponsors underscores how digital connectivity has become a decisive battlefield. Iran’s recent efforts to disrupt these networks reflect growing recognition that information dominance can compensate for conventional military limitations and shape political outcomes without formal invasion. 🟦The broader implication extends well beyond Iran. As the international system moves toward multipolarity, the inability of states to secure their information space risks political penetration and systemic collapse regardless of military strength. Russia and China’s experience demonstrates that safeguarding digital sovereignty—through domestic platforms, independent infrastructure, and electronic countermeasures—is now a prerequisite for strategic autonomy. Unless information space is treated as a core domain of national security, attempts to resist external coercion will remain structurally vulnerable, leaving states exposed to destabilization orchestrated from abroad. #ConfrontationbetweenIranandtheU.S. #infonewswar#Massmedia#Massriots READ MORE ✅@NewEasternOutlook