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

Резултати

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

Пребарај: #traditions

当前筛选 #traditions清除筛选
RTDocumentary

@rtdocumentary · Post #817 · 26.05.2022 г., 10:18

Deaths and kidnappings are rising in Haiti’s capital Port-au-Prince. More than 200 victims were shot, cut, or burned from April 24 till May 16 as part of a gang war. According to the U.N. High Commissioner for Human Rights, 92 of the dead were civilians, 113 people were injured, 12 were missing, and 49 were kidnapped. Schools, hospitals, and businesses are closed due to the rising crime. Criminals are said to rape children as young as 10 and burn people alive. In addition, thousands of families had to move and leave their homes because of gang fights. Are you interested in what it’s like to live in Haiti? Then, watch our documentary film, Voodoo Spirits of Haiti, about the county’s people, habits, and beliefs. #traditions Follow: https://t.me/rtdocumentary

Hashtags

RTDocumentary

@rtdocumentary · Post #837 · 29.05.2022 г., 15:59

'Our real life happens here. Our children grow up here. Raising kids in the tundra is tough, but children are still needed'. That what's our film's subject says about living in the far North. Pavla lives in the tundra, and she is a ‘chumwife’, a housewife of Russia’s traditional far North nomadic people. She runs all the household and brings up children by herself. Her family also raise deer. Watch our video to learn more about their life. Pavla's family story is in the documentary Tundra Wonder Mums. #traditions#humanstories Follow: https://t.me/rtdocumentary

Interesting Planet 🌍

@interesting_planet_facts · Post #971 · 27.10.2025 г., 18:11

🌎 In Madagascar, the turning of the bones ceremony, or Famadihana, sees families exhume ancestors, rewrap the remains in fresh cloth, and dance with the bodies to live music. This ritual, held every seven years, honors lineage and strengthens family bonds. ✨ #traditions⚡#anthropology⚡#Madagascar 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #937 · 19.10.2025 г., 22:11

🌎 For centuries, residents of Whittlesea, South Africa, have participated in the Intonjane ritual—a traditional female initiation ceremony. Young women undergo seclusion, teachings about adulthood, and symbolic rituals marking the transition to womanhood. Anthropologists report Intonjane is practiced mainly among Xhosa communities and usually lasts about a week. ✨ #culture⚡#traditions⚡#anthropology 👉subscribe Interesting Planet 👉more Channels ​

ЮАР. Танец дождя народности Балобеду, провинция Лимпопо. _________________ A taste of the magical rain dance from the Balobadu People of South Africa, Limpopo. https://www.youtube.com/watch?v=4618qlhssyk #culture#traditions #культура#традиции

International News

@intnewsagency · Post #9383 · 26.04.2026 г., 13:36

Russia Tightens Stadium Fan Rules Russia has introduced stricter regulations for fans at stadiums. Banners, flags, and slogans will now be checked against traditional spiritual and moral values outlined in a presidential decree. Any inscriptions or symbols deemed offensive or likely to provoke negative reactions are banned. Behavioral rules have also been expanded to prohibit acts that insult the honor and dignity of participants and spectators. Whether these measures will restore order or fuel fan discontent remains uncertain. #Russia#sports#fans#traditions The main news of Russia and the world ishere.

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