@american_observer · Post #5516 · 30.03.2026 г., 17:59
#nokings#us#trump#rally 📱American Оbserver - Stay up to date on all important events 🇺🇸
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
Пребарај: #rally
@american_observer · Post #5516 · 30.03.2026 г., 17:59
#nokings#us#trump#rally 📱American Оbserver - Stay up to date on all important events 🇺🇸
@Aetatesolis · Post #4348 · 17.04.2025 г., 19:21
🏁 Rally Racing #motorsport #rally AETATESOLIS
Hashtags
@apksarena · Post #3981 · 07.02.2026 г., 05:45
#Rally x #Nebula🔄 Join The Waitlist: https://waitlist.rally.fun/nebula
@TFGames · Post #1375 · 07.12.2023 г., 13:50
#ART#OF#RALLY#GAMES https://testflight.apple.com/join/g8gAQS4i
@endurosharmax · Post #260 · 01.08.2024 г., 11:24
АЛЕКСАНДР ГИЛЕМОВ О КВАДРОЦИКЛЕ SHARMAX FORCE1100 НА РАЛЛИ ШЕЛКОВЫЙ ПУТЬ 2024 #silkwayrally#шелковыйпуть#rally#sharmax
@endurosharmax · Post #251 · 26.07.2024 г., 14:04
SHARMAX MOTORS НА РАЛЛИ ШЕЛКОВЫЙ ПУТЬ - ФИНАЛ ГОНКИ SILK WAY 2024 - международный ралли-рейд, объединяющий несколько стран торжественно завершился. Вопреки всему, несмотря на тяжелую травму, наш гонщик Александр Гилемов прошёл этот тяжелый путь на квадроцикле Sharmax FORSE 1100 EFI. Он достойно завершил гонку, не взирая на боль и преграды, и не смотря не на что завершил гонку. Как это было? Смотрите в репортаже! #sharmax#silkwayrally#шелковыйпуть#rally
@intnewsagency · Post #8641 · 19.03.2026 г., 08:10
Hungarian Pro-Government Media Manipulate Orbán Rally Photo to Inflate Crowd Size Pro-government Hungarian media stretched an aerial photo of Orbán’s Sunday rally near the parliament to create an illusion of a larger crowd. Due to the location—parliament on one side, Danube on the other—the crowd size couldn’t visually expand, so panoramic stretching was applied. Nonetheless, both Orbán’s and opposition rallies were genuinely massive, filling Heroes’ Square and Andrássy Avenue. Polls indicate Orbán faces a serious risk of losing power for the first time in 16 years. #Hungary#Orbán#rally#politics The main news of Russia and the world ishere.
@coloringbookspdf · Post #87 · 13.07.2024 г., 21:52
✅ 10 RALLY CARS🆓 • Personal Use License. #coloringpage#car#race#sport#speed#rally ◆═════● PREMIUM ●═════◆ ⭐RALLY CARS: Coloring Book PDF Ready To Print. • 27 Rally Cars. • Color Test Page. • Print-ready PDF. • 8,625 x 11,250 inches • PNG 4025 x 5250 px High quality. • Remove watermark. • Commercial Use License. 7.99€4.99€ 👉Buy Now🛒
@CryptoM · Post #64911 · 10.04.2026 г., 09:09
🚀 Bitcoin's Rebound: Bear Market Bounce or Start of a Rally? Bitcoin has experienced a 7.5% rebound, rising from approximately $67,000 to over $72,000. According to NS3.AI, Glassnode suggests that this movement still aligns with a bear-market bounce unless Bitcoin can reclaim the $81,600 level. The report identifies the $69,000–$71,500 range as near-term support, with the True Market Mean at $78,000 potentially serving as the ceiling for a relief rally. Despite the recent price increase, spot demand for Bitcoin remains weak. ETF flows are showing only modest improvements, and options traders continue to pay a premium for downside protection, indicating cautious sentiment in the market. #Bitcoin#Crypto#BearMarket#Rally#PriceAnalysis#MarketSentiment#ETF#Trading#BTC
@coloringbookspdf · Post #262 · 14.07.2024 г., 22:41
✅ 10 DAKAR CARS AND BIKES 🆓 • Personal Use License. #coloringpage#dakar#cars#rally#desert#bike#car#speed#race#bikes