TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Hashtags

Резултати

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

Пребарај: #income

当前筛选 #income清除筛选
Tesla Calls Official

@teslacallsofficial · Post #10022 · 15.03.2026 г., 20:51

🔥$INCOME Entered this position as a speculative play within the SOLANA ecosystem. Monitor pullbacks carefully, manage entries with discipline, and always conduct your own due diligence before participating. #TSLA X: https://x.com/i/communities/2033055064420659307 🔗 Contract: https://solscan.io/token/5QmbJw7mM6tcCdXVy8ftc2bu8izded7Etc57TMA2pump https://dexscreener.com/solana/C1CfVtbnUoW9y2ZgZkynn9di4eANZwqa4TPGHa7pfFFr #INCOME#SOLANA#TESLACALLS

Daily Channels

@dailychannels · Post #6201 · 12.07.2025 г., 13:00

Channel: SIGNAL Members: ~63.75K 💢 Username: @finsignal Description: About blockchain, cryptocurrency and crypto technologies. Actual entry and exit points in the cryptocurrency market. Channel: @finsignal Bot: @finsignalbot For questions contact: @finsignaladmin Advertising and schedule: @my_signal_ad_bot 🏷 Tags: #crypto_fx_trading #cryptocurrency#nft#income#business https://telegramchannels.me/channels/finsignal

International News

@intnewsagency · Post #9373 · 25.04.2026 г., 09:34

Putin Changes Income Declaration Rules for Officials Vladimir Putin signed a law requiring officials to declare the total family income—covering themselves, their spouses, and minor children—without detailed breakdowns. Pre-marriage spousal incomes are excluded but may appear in expense declarations. The law limits oversight of transactions and assets made before appointment or marriage, excluding them from inspections and penalties. #Russia#Officials#Income#Law The main news of Russia and the world ishere.

Vet_opportunities

@vet_opportunities · Post #466 · 27.04.2026 г., 07:49

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #439 · 11.04.2026 г., 01:14

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #427 · 04.04.2026 г., 02:56

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #407 · 23.03.2026 г., 16:54

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #400 · 21.03.2026 г., 17:46

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #396 · 20.03.2026 г., 18:22

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Venture Village Wall 🦄

@venturevillagewall · Post #3436 · 19.12.2024 г., 07:00

E-commerce Conversion Crisis E-commerce stores face a critical challenge with low conversion rates from social media traffic—about half of the general average. Despite this, social networks are a major traffic source, with 64% of users making purchases through them, accounting for a third of online sales. This gap presents significant revenue losses for stores that fail to convert this traffic, highlighting a potential market for platforms aimed at boosting conversions. Read more: Fastfounder #Ecommerce#Conversion#SocialMedia#Traffic#Sales#OnlineShopping#Startup#Market#Revenue#Challenges#Users#Platforms#Retail#Growth#Insights#Business#Tech#DigitalMarketing#Shopping#Income#Reports