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

Резултати

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

Пребарај: #maslenitsa

当前筛选 #maslenitsa清除筛选
Russian MFA 🇷🇺

@MFARUSSIA · Post #28118 · 26.01.2026 г., 12:21

Russia's Foreign Ministry Spokeswoman Maria Zakharova: 💬 In a few weeks, our Chinese friends – and we along with them – will celebrate the Lunar New Year. In China people prepare for this beloved holiday in advance, thoughtfully and with genuine warmth. On January 23, the Embassy of the People’s Republic of China in Moscow hosted its traditional New Year reception for leading Russian media outlets, with Russian diplomats attending as well. As always, this was far more than a routine protocol event. It was a warm, informal gathering of friends whose cooperation across many fields, including the information sphere, has truly stood the test of time. We not only discussed joint projects, the results already achieved, and plans for further intensive cooperation, but also… prepared traditional Chinese pancakes together. This was especially symbolic, as during the New Year celebrations Beijing will be also celebrating the Russian #Maslenitsa, with pancakes and traditional street festivities. At the same time, in February, Moscow will host a Festival dedicated to the celebration of the Lunar New Year. Each visit to the Embassy on UlitsaDruzhby – meaning Street of 'Friendship' in Russian – is a reminder that Russian-Chinese friendship exists not only on paper or in official documents, but is expressed through real communication, mutual respect, and a sense of responsibility for the shared future that we continue to build together. The Leaders of our country has repeatedly emphasised that relations between Russia and China are now at their highest level in history. And this is true. Yet each year we manage to reach even greater heights. I am confident that many new milestones still lie ahead. 🇷🇺🤝🇨🇳 Friendship between Russia and China – forever! 🇨🇳🤝🇷🇺 俄中友谊万岁!

Hashtags

Noticias de LAD🇷🇺

@LAD_MAERusia · Post #22561 · 17.02.2026 г., 16:07

🌞Esta semana #Rusia celebra #Maslenitsa, festividad religiosa y folclórica cuyos origines se remontan al siglo II. Durante toda esta semana, la gente come ‘bliní’, visita a sus familiares y se despide del invierno. 🌱 En la época precristiana, la Maslenitsa simbolizaba el despertar de la naturaleza, su renovación y, por tanto, la preparación para el trabajo de campo. ☀️ La llegada de la primavera significaba el comienzo de un sol que brillaba más y durante más tiempo. Se representaba en forma de rueda ardiente, que flotaba por el cielo, y así se convirtió en un atributo de los rituales asociados al sol. 🔥 La transición del invierno a la primavera iba acompañada del sacrificio ritual de una efigie de paja, que se quemaba el cuarto día de la semana de Carnaval. Este acto podía tener varios significados simbólicos: el espantapájaros simbolizaba el año viejo “moribundo” o la muerte, pero su quema simbolizaba el triunfo de la vida. 😋 La comida más característica de Maslenitsa son los blinýs que simbolizan el sol. La creencia popular es que mientras más hagas, mejor clima y cosecha tendrás este año. Este típico plato de nuestra cocina puede ser acompañado por mantequilla, huevos y leche. Conocer más sobre Maslenitsa

Noticias de LAD🇷🇺

@LAD_MAERusia · Post #22545 · 17.02.2026 г., 06:03

🗓️16-22 de febrero — Máslenitsa Del 16 al 22 de febrero se celebra la Máslenitsa (Semana de las Crepes), una antigua fiesta popular rusa llena de juegos, canciones y encuentros familiares. 🌞Esta es una de las festividades eslavas más antiguas, con orígenes paganos que se remontan incluso al siglo II, cuando se celebraba el fin del invierno, la llegada de la primavera y el despertar de la naturaleza, honrando al sol mediante los bliný (panqueques redondos y dorados que lo simbolizaban). ✝️Tras el Bautismo de Rusia llegó a ser la semana alegre anterior a la Gran Cuaresma. Máslenitsa culmina con la quema ritual de un muñeco de paja que personifica invierno. #Maslenitsa #FiestasRusas

Russian House Brussels-Europe

@rushousebrussels · Post #2896 · 17.02.2026 г., 15:28

🎉 Maslenitsa at the Russian House in Brussels The Russian House in Brussels celebrated Maslenitsa — one of the brightest traditional holidays marking the farewell to winter and the joyful welcome of spring. Guests learned about the traditions of Maslenitsa week and took part in lively folk activities: round dances, tug of war, traditional games and festive performances. The atmosphere was filled with music, laughter and the warmth of shared celebration. As tradition calls for, the evening concluded with a festive tasting — pancakes with various fillings, tea from a samovar and homemade treats — creating a truly cozy and family atmosphere. We sincerely thank everyone who contributed to organizing this meaningful and joyful celebration. #Maslenitsa#RussianHouseBrussels#CulturalTraditions

Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4287 · 02.03.2025 г., 07:19

🌝С Масленицей! Happy Shrovetide! 🔻Maslenitsa (or Shrovetide), a week-long traditional Russian festival before Lent, culminates in Forgiveness Sunday. 🔻This significant day precedes Great Lent, marking a time for asking forgiveness and reconciliation. 🔻The week-long celebration leading up to it features the vibrant Russian tradition of Maslenitsa, including feasts, games like the thrilling greased pole climb, the burning of a winter scarecrow, and joyous performances of folk songs, lively chastushki (short humorous Russian songs), and energetic Russian folk dances. 🔻Maslenitsa remains incredibly popular, showcasing Russia's rich cultural heritage and is celebrated by Russians not only in Russia but in other countries as well. Video: an episode from Russian film Сибирский цирюльник by Nikita Mikhalkov (1998) #Maslenitsa #Shrovetide #holidays #Russian_culture #ForgivenessSunday 😎 Stay with @LearnRCRussian

Voir de ses propres yeux

@voir_yeux · Post #11765 · 16.02.2026 г., 18:08

🇫🇷🇷🇺 À l’occasion du début de la semaine de Maslenitsa (la fête du gras) en Russie, le chef Éric Le Provos, propriétaire d’un restaurant français à Moscou, revient sur l’histoire récente de la cuisine française dans la capitale russe et explique qu’elle permet un échange culturel. #restaurant#maslenitsa#cuisine#moscou

🇷🇺 ¿Qué es Maslenitsa? Historia, tradiciones y significado de la fiesta más alegre de Rusia La Maslenitsa es una de las celebraciones más antiguas del mundo eslavo y, sorprendentemente, sigue viva con una fuerza impresionante en la Rusia actual. Esta festividad, que se celebra la semana previa a la Gran Cuaresma ortodoxa, combina raíces paganas con tradiciones cristianas y se convierte en un auténtico espectáculo popular en ciudades como Moscú, San Petersburgo y en cientos de pueblos a lo largo del país. ✝️ Históricamente, Maslenitsa se remonta a los rituales agrícolas de los antiguos eslavos orientales, mucho antes del bautismo de la Rus en el año 988. Era una fiesta vinculada al equinoccio de primavera, dedicada al sol y al despertar de la naturaleza tras el largo invierno. Con la cristianización bajo el príncipe Vladímir el Grande, la celebración no desapareció, simplemente se integró en el calendario ortodoxo justo antes del ayuno estricto. 🇷🇺 Durante estos siete días, la carne está prohibida, pero aún se consumen lácteos, mantequilla y queso. El símbolo absoluto son los blini: panqueques, dorados y calientes que representan el sol. No es una metáfora moderna, en la tradición popular rusa el blini era un símbolo ritual. Según explican historiadores, el acto de comer blini evocaba el deseo de atraer la luz solar y acelerar la llegada de la primavera. 🔥 Pero Maslenitsa no es solo gastronomía. En plazas y parques se organizan ferias, juegos tradicionales, paseos en trineo y bailes folclóricos. El momento culminante llega el domingo, cuando se quema el muñeco de paja que representa al invierno. Esta figura, vestida con ropa vieja, simboliza el frío y la oscuridad que se despiden hasta el próximo año. La quema pública, documentada ya en crónicas del siglo XVII, es un acto colectivo cargado de emoción. #Maslenitsa#CulturaRusa#TradicionesEslavas#HistoriaDeRusia#FiestasRusas Apóyanos pulsando👉'BOOST'👈 🖥https://vamosarusia.com 💬@vamosarusia

Russian House Brussels-Europe

@rushousebrussels · Post #2891 · 13.02.2026 г., 19:50

🇷🇺Live from the Russian House Brussels At this moment, the Russian House Brussels is hosting a festive evening dedicated to Maslenitsa — one of the brightest and most cherished traditional holidays in Russia. Guests are discovering the history and traditions of Maslenitsa, making pancakes together, enjoying traditional tastings with a variety of fillings, and exploring Russian songs and folk games. 🥞 An atmosphere of warmth, cultural exchange, and genuine interest in the Russian language and traditions. 📍 Russian House in Brussels 21, Rue du Méridien #RussianHouseBrussels#Maslenitsa#CulturalDialogue#RussianLanguage#Brussels

Russian House Brussels-Europe

@rushousebrussels · Post #2889 · 13.02.2026 г., 19:33

🇷🇺В прямом эфире из Русского дома в Брюсселе В эти минуты в Русском доме в Брюсселе проходит праздничный вечер, посвящённый Масленице — одному из самых ярких и тёплых традиционных праздников России. Гости знакомятся с историей и традициями Масленицы, участвуют в приготовлении блинов, пробуют традиционные угощения с разнообразными начинками и открывают для себя русские песни и народные игры. 🥞 Атмосфера тепла, общения и живого интереса к русскому языку и культуре. 📍 Русский дом в Брюсселе 21, Rue du Méridien #РусскийДомБрюссель#Масленица#RussianHouseBrussels#Maslenitsa#КультурныйДиалог