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

Резултати

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

Пребарај: #liberation

当前筛选 #liberation清除筛选
International News

@intnewsagency · Post #9095 · 01.04.2026 г., 09:47

Russian Defense Ministry Announces Full Liberation of Luhansk People's Republic The Russian Defense Ministry has declared the complete liberation of the Luhansk People’s Republic. According to official reports, all key settlements are now under the control of Russian and allied forces. This marks a significant step toward regional security and stability. Officials emphasize that future efforts will focus on rebuilding infrastructure and restoring normal life for residents. #Russia#LPR#DefenseMinistry#Liberation#Security The main news of Russia and the world ishere.

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3936 · 26.01.2025 г., 13:39

Lebanese civilians from the South have made their decision: no barriers, rubble, or Israeli checkpoints will stop them. After 60 days of ceasefire, they are reclaiming their towns and returning home—even as Israel refuses to withdraw. This is resilience. This is liberation. The land belongs to its people, and they are determined to rebuild, no matter the challenges. #SouthLebanon#Liberation#Resistance#ReturnToHome#Lebanon#Defiance#SecondLiberation

Egountchi Behanzin Officiel

@egountchibehanzinofficiel · Post #7921 · 25.12.2024 г., 07:15

Salutations Révolutionnaires On ne libère pas un peuple en ignorant son histoire. Tant que les dirigeants africains, aussi bien intentionnés soient-ils, parlent de souveraineté tout en continuant d’appliquer des concepts coloniaux occidentaux, en se pliant aux règles et doctrines établies par l’oppresseur, ils ne libéreront personne. La mémoire collective est essentielle ; la souffrance des Africains n’est pas suffisamment reconnue et, pire encore, on cherche à leur faire oublier leur histoire. Pour véritablement avancer vers la libération, il est fondamental de se rappeler d’où l’on vient et de revendiquer notre héritage avec fierté. Créons la Journée de l’Héritage dans nos pays ! Il est temps de commencer par changer les programmes scolaires hérités des politiques de Jules Ferry, qui sont encore enseignés à nos enfants. Retirons et bannissons les livres de Fernand Nathan qui déshumanisent l’Africain, ceux qui présentent Charles de Gaulle comme un héros pour les Africains, et ces chansons à la gloire de Napoléon que nous avons chantées à l’école. Je le répète : la libération ne se limite pas à une lutte militaire contre des terroristes armés, mais elle implique également une résistance contre le terrorisme culturel. Célébrons notre héritage et affirmons notre identité ! REJOIGNEZ LA RÉSISTANCE SUR TELEGRAM. 🔺Pour les numéros français : https://t.me/egountchibehanzinTV 🔻Pour les numéros internationaux : https://t.me/EgountchiBehanzinOfficiel @egountchibehanzinTV #Souveraineté#MémoireHistorique#Liberation#JournéeDeLHéritage #Éducation#LibérationCulturelle