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

Резултати

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

Пребарај: #russiannature

当前筛选 #russiannature清除筛选
Learn RCRussian🤍💙❤️

@learnRCRussian · Post #5582 · 20.10.2025 г., 12:00

The Northern Lights have reached the Moscow region! 🔻In a spectacularly rare event, the aurora borealis was visible even near Moscow last weekend. 🔻The heavenly glow was observed in the Arkhangelsk, Kostroma, and Moscow regions. The sky was also lit up with green and orange light in the Leningrad region. 🔻A stunning natural light show, much further south than usual! Videos, photos: the Internet #Russiannature 😎RCR | Support | Boost

Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4604 · 30.04.2025 г., 16:00

💙Dolphins near the coast of Balaklava, Crimea 🇷🇺В этом видео всё прекрасно: изумительная палитра моря, сливающегося с небом, тёмные силуэты скользящих в воде плавников, угрюмые скалы. Так хочется быть частью этого мира! А вам нравится? 🇬🇧Everything in this video is perfect: the amazing palette of the sea merging with the sky, the dark silhouettes of fins gliding through the water, the somber cliffs. I so want to be a part of this world! Do you like it? Video: kulikov_alex5 #Russiannature 😎RCRussian | Support | Boost

Russian Embassy in Asmara

@rusembasmara · Post #678 · 09.04.2026 г., 09:31

🇷🇺RUSSIAN NATURE🇷🇺 🏞️The Putorana Plateau is one of the most mysterious and picturesque places in Russia. Located in the northwestern part of Krasnoyarsk Krai, this region feels untouched by time: vast basalt plateaus, deep canyons and thousands of waterfalls define its landscape. 💧It is often called «the land of ten thousand lakes and waterfalls». In terms of waterfall density, the plateau has no equal in Russia. One of them, the Talnikovy Waterfall, is considered the highest in the country. 🏅The Putorana Nature Reserve is a UNESCO World Heritage Site that attracts researchers, photographers and seekers of unexplored wilderness. 🏔️Many people dream of visiting this region. For hundreds of kilometers, there are only mountainous areas, deep gorges and intricate networks of rivers, lakes and waterfalls. Helicopter tours and river rafting are especially popular, though some travelers also venture out on hiking expeditions. 🤗Visit Russia and set out on a journey! #RussianNature#Russia

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #5468 · 22.09.2025 г., 19:35

🧡Somewhere in Russia... • На закате (НА + Prepositional) [na za-ka-te] At sunset, at dusk • Вечером (adverb) [ve-chi-ram] In the evening • На исходе дня (НА + Prep.+Gen.) [na is-khho-di dnya] At the end of the day ✨Всем добра! #Russiannature #useful_vocabulary 😎RCR | Support | Boost

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #6249 · 01.03.2026 г., 16:00

Аптекарский огород Apothecary's Garden 🌷This is a garden where medicinal plants are grown. 🌷Historically, these were pharmacy gardens established by Peter the Great in the early 1700s to grow herbs for medicines. 🌷Today, it refers to Moscow's oldest botanical garden (founded 1706), now a branch of Moscow State University and a popular park where you can see beautiful flowers, exotic plants, and even a 300-year-old larch tree! Video: moscowmi #brief_and_interesting #Russiannature 🟠RCR | Support | Boost

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