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 слични објави

Пребарај: #busification

当前筛选 #busification清除筛选
Russian Consulate in Cape Town

@rusconct · Post #2422 · 08.04.2025 г., 18:47

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova(Moscow, April 3, 2025) 🔹 Russia's Foreign Minister Sergey Lavrov's schedule 🔹AFU strikes on Russia’s energy infrastructure 🔹Kiev regime crimes 🔹 Third anniversary of the Bucha hoax 🔹 Busification in Ukraine 🔹 New facts about Nazi criminals in Canada 🔹 Silence of the West regarding the attacks on the "Nord Streams" 🔹Russia’s humanitarian aid to Myanmar 📰Read 📺Watch *** The Kiev regime, having completely lost its sense of self-preservation and connection to reality, in its desperate attempt to disrupt the ongoing Russian-American dialogue at any cost, continues to employ blatantly terrorist methods, striking Russian energy infrastructure on a daily basis. At the same time, it is clear that these attacks hold no military value. The actions of the Kiev regime not only constitute war crimes but also represent a deliberate effort to sabotage any peace initiatives. The assurances given by Zelensky that they would honour the moratorium were broken on the very same day. #Ukraine#Busification Even Ukraine’s ombudsman could not turn a blind eye to rampaging corruption and arbitrary conduct by draft centres. In his report, he admitted the mass and systemic nature of human rights violations and abuse of power. He mentions evidence of using force, weapons and special devices against draftees, as well as forceful signing of documents, prevention of access to legal aid for these victims of so-called “busification”, a new term that refers to newly caught males aka future conscripts being put with use of force into buses against their will. Attorneys have been replaced by plain mobsters who charge thousands of dollars for the service of “rescuing” draftees. #Canada#Nazis A group of American historians led by Jared McBride, a history professor at the University of California, has recent gained access to typed and handwritten files with the names of Nazis and their accomplices who were given asylum in Canada, which are available online. The list was stored at the Library and Archives Canada. There are 774 names on it. They have mentioned the names of especially notorious persons, such as an founder of the 14th Galicia Division Vladimir Kubiyovich and Helmut Oberlander from the death squads of Sonderkommando 10a (Sk 10a), who participated in the massacres of children in the Krasnodar Krai in 1942-1943. This story is yet another reminder of the fact that the Canadian authorities encouraged Nazi criminals and their accomplices from collaboration units, including those guilty of the Holocaust,to move to Canada starting in 1948. These people were not called to account for their crimes but enjoyed protection and patronage.