@emoji1 · Post #1915 · 19.04.2025 г., 11:51
🙏🎂🥚🧺🥚🥚🥚🥚🙏🥚🥚🥚🥚✝️👯🥚🙏🙏🙏🙏🥚🐣🕊️🙏🧁🛐🥚❤️🔥💒👧🥚🥚🥚✨✨✨🥚🧁🐇🩵❤️🩷🥚🌸🌸🌸🥚🆗🥚🤍🥚 пасха | add#easter please boost 👼
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #146 · 16 сеп.
Функция sub в regex может принимать функцию в качестве аргумента repl. 📄 Из документации: If repl is a function, it is called for every non-overlapping occurrence of pattern. The function takes a single match object argument, and returns the replacement string. То есть для каждого совпадения будет вызвана функция для вычисления замены вместо замены на одну и ту же строку для всех совпадений. Иными словами, для замены разных совпадений на разные строки не потребуется запускать re.sub() много раз для каждой строки замены. Достаточно определить функцию, которая вернёт строку для каждого из совпадений. Описание слишком запутанное🤔, давайте лучше рассмотрим на простом примере: Создаем карту замены. То есть какие строки на какие требуется менять. remap = { 'раз': '1', 'два': '2', 'три': '3', 'четыре': '4', 'пять': '5', } Пишем функцию поиска строки для замены. Единственным аргументом будет объект re.Match. Используя данные этого объекта мы вычисляем замену on-the-fly! def get_str(match: re.Match): word = match.group(1) return remap.get(word.lower()) or word Пример текста. text = '''Раз Два Три Четыре Пять Вместе будем мы считать Пять Четыре Три Два Раз Мы считать научим вас ''' Теперь запускаем re.sub и вместо строки замены (repl) подаём имя функции. (Данный паттерн ищет отдельные слова в тексте) >>> print(re.sub(r'(\w+)', get_str, text)) 1 2 3 4 5 Вместе будем мы считать 5 4 3 2 1 Мы считать научим вас Думаю, достаточно наглядно 🤓 #libs#regex
Пребарај: #easter
@emoji1 · Post #1915 · 19.04.2025 г., 11:51
🙏🎂🥚🧺🥚🥚🥚🥚🙏🥚🥚🥚🥚✝️👯🥚🙏🙏🙏🙏🥚🐣🕊️🙏🧁🛐🥚❤️🔥💒👧🥚🥚🥚✨✨✨🥚🧁🐇🩵❤️🩷🥚🌸🌸🌸🥚🆗🥚🤍🥚 пасха | add#easter please boost 👼
Hashtags
@aseanrussia · Post #1593 · 20.04.2025 г., 09:26
Happy #Easter to all who celebrate! May this Easter bring peace, love, and prosperity! 🙏
Hashtags
@emoji1 · Post #1560 · 05.05.2024 г., 06:58
🧺 🧁 🧁 🥚 🥚 🥚 🥚 🥚 🥚 🐰 🥕 🐇 🐰 🐇 🐰 🐰 🥚 🥚 🐥 🏵 💮 🪴 🌺 🪴 🥚 🥚 🥚 🚩 🚩 🚩 🚩🥮🙏 🤩🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 🤩 🤩 🤩 🤩 🤩 🤩🥚 🤩 🤩🥚🥚🥚🥚 пасха | add#easter please boost 👼
Hashtags
@EuropeanTribalism · Post #406 · 11.04.2020 г., 15:55
Quick and easy way to color your eggs for #Easter: Wrap plant parts of your choice around an egg with a nylon sock very tightly, so that the plant is pressed against the shell. Place the eggs into warm water with loads of onion peels. Boil it for twelve minutes and let everything cool down. Remove the sock with the plant and rub speck all over the egg to make it look shiny. Happy Easter to all of you! @EuropeanTribalism
Hashtags
@CustomEmojiPacks · Post #531 · 29.03.2023 г., 18:32
🎁t.me/addemoji/F4nt1kR4bb1tMaydroid Tags: #animated#animals#easter
@learnrcrussian · Post #4534 · 17.04.2025 г., 16:00
An online video demonstrating how to dye Easter eggs with red wine has become viral. The only thing: keep the wine in the pot, not in yourself! 🔻Here's how: ⚡️Pour any red wine into a pot with red eggs. ⚡️Bring to a boil and simmer for 10 minutes. ⚡️Then cool and put the pot with the eggs and wine into the fridge (not freezer!) for the night. ⚡️In the morning, place them on paper towels to dry. ⚡️The result is matte, shimmering Easter eggs with an unusual color. 🐣Happy Easter to all! #holidays #Easter 😎RCRussian | Support | Boost
@tonlines · Post #6814 · 17.04.2025 г., 13:05
JetTon Games: Final Stage of Easter Treasure Hunt Tournament #JetTon#EASTER JetTon Games announces the final stage of the Easter Treasure Hunt Tournament with a total prize pool of €250,000. Participants can compete in various games like Hot Triple Sevens and The Greatest Catch Bonus Buy with a minimum bet of 0.2 EUR. This is the last opportunity to secure a position in the winners ranking. Source: link @tonlines
@euinkazakhstan · Post #1284 · 18.04.2025 г., 12:12
Happy Easter! *** Пасха мерекесі құтты болсын! #Пасха#Easter
@IrishKnowledge · Post #91 · 23.09.2017 г., 22:13
'Ruins of the Four Courts' - Kathleen Fox. During the #Easter Rising she explored the streets of her native Dublin to paint events there. #Dublin
@learnrcrussian · Post #4547 · 19.04.2025 г., 14:00
🙏🙏🙏Some Russian Easter mood for you: • Красить яйца (imperf.) [kra-sit' yay-tsa] To colour/dye eggs ❓А вы красите яйца на Пасху? Video: AIvikki_topneuro #AI #holidays #Easter 😎RCRussian | Support | Boost
@free4ones · Post #935 · 20.04.2025 г., 09:07
Как все изменилось за несколько сотен лет... Когда-то последователи скрывались в темных катакомбах, а сегодня сторонников учения бесчисленное множество — христианство прошло огромный путь, став одной из главных духовных сил мира. #пасха#easter
@tkong_channel · Post #121 · 19.04.2025 г., 12:38
🐰 Happy Easter from Tkong! 💐 Wishing you a peaceful and joyful spring. 🐰 Tkong 祝你復活節快樂! 💐 願這個春天帶來平安與喜悅。 #Easter#Tkong