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

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #65 · 8 апр.

Небольшой трик с регулярными выражениями который редко вижу в чужом коде. Допустим, вам нужно распарсить простой текст и вытащить оттуда пары имя+телефон. Вернуть всё это надо в виде списка словарей. Возьмем очень простой пример текста. >>> text = ''' >>> Alex:8999123456 >>> Mike:+799987654 >>> Oleg:+344456789 >>> ''' Соответственно, для выделения нужных элементов будем использовать группы. Получится такой паттерн: (\w+):([\d+]+) Как мы будем формировать словарь из найденных групп? >>> import re >>> results = [] >>> for match in re.finditer(r"(\w+):([\d+]+)", text): >>> results.append({ >>> "name": match.group(1), >>> "phone": match.group(2) >>> }) >>> print(results) [{'name': 'Alex', 'phone': '8999123456'}, ...] Можно немного сократить запись используя zip >>> results = [] >>> for match in re.finditer(r"(\w+):([\d+]+)", text): >>> results.append(dict(zip(['name', 'phone'], match.groups()))) Но есть способ лучше! Это именованные группы в regex. Можно в паттерне указать имя группы и результат сразу забрать в виде словаря. >>> for match in re.finditer(r"(?P<name>\w+):(?P<phone>[\d+]+)", text): >>> results.append(match.groupdict()) То есть всё что я сделал, это добавил в начале группы (внутри сбокочек) такую запись: (?P<group-name>...) Теперь найденная группа имеет имя и можно обратиться к ней как к элементу списка >>> name = match['name'] Либо забрать сразу весь словарь методом groupdict() >>> match.groupdict() #tricks#regex

Резултати

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

Пребарај: #wealth

当前筛选 #wealth清除筛选
Go! Announcements

@gorwachain_announcements · Post #506 · 25.08.2024 г., 21:30

There's a lot to be made by tapping and claiming coins from the Go! Ton App! Get started Here: https://t.me/thegoprojectBot This bot is your free pass to Sweet rewards, get started Now. Once you get started, you've got to maintain your spot as a weekly and monthly active user. Here's why: 🔹 There are more rewards as you get more active 🔹 You get features nobody else gets 🔹 You get into higher ranks which means exclusive airdrops will be sent to you. 🔹 You get access to collectibles reserved just for you 🔹 You get to Contribute more to the community, and influence the direction of the project Ready to start Tapping? Let's Go: https://t.me/thegoprojectBot #gotonapp#tap2earn#bot#rewards#boost#wealth Join: 🐣X✉️Chat✉️News🤖Discord Play: 🕹️TON App💻Web App Info: 🖥Newsletter🌐Website🌐Blog

Inspiring Images

@InspiringImages · Post #13506 · 22.01.2026 г., 05:13

Rich Dad vs Poor Dad mindset 💸 Poor Dad: “Money comes when you work.” Rich Dad: “Money comes when you build a system.” The lesson: Don’t only trade time for money. Build assets, skills, and processes that pay you repeatedly. Today’s action: Pick ONE system to start: • automate savings/investing • create a digital product • build a side business workflow #RichDadPoorDad#money#wealth#mindset#financialfreedom#selfimprovement#books

Crypto Fight || News 🚀

@cryptofightnews · Post #2910 · 18.09.2025 г., 07:52

🚀 Analyst Price Targets: $2–$5 Long Term 🚀 Royals see it. Whales see it. Do you? Buy at $0.00405 before it’s too late. 👉www.shheikh.io #Crypto#Blockchain#AI#RWA#DeFi#Tokenization#Altcoins#CryptoCommunity#Presale#BullRun2025#NextBigThing#Wealth

Airdrop Comic

@airdropcomic · Post #2147 · 16.10.2025 г., 12:24

🔥Presale – SHHEIKH Phase 2 (LIVE) ✅ 💠Total Reward: Token Raises $6.92M+ in Phase 2, Attracts Global Investors 🚨SHHEIKH Presale Surpasses $6.92M+ — Momentum Is Unstoppable 🚨 ✅ $6.92M+ raised ✅ 2.21B+ tokens sold ☀️Presale Link: – Click Here ♦️AI + RWA = the next trillion-dollar blockchain market. ♦️Secure SHHEIKH at $0.00405 before the next surge. ♦️Follow their Twitter account ♦️Join their Telegram Channel 📅End Date: TBA 📤Distribution: After campaign ends ®Note - Please do your own research (DYOR) before joining to any airdrops project. #Crypto#Blockchain#AI#RWA#DeFi#Tokenization#Altcoins#Presale#CryptoCommunity#Wealth#FutureOfFinance#BullRun2025

Crypto Officer™

@cryptoofficer · Post #1568 · 09.10.2025 г., 02:39

📦New Project Spotlight: SHHEIKH Token 🔥 🪙 Phase 2 Live: $0.00405 + 5% Bonus 💎Rating: ⭐️⭐️⭐️⭐️⭐️ 🔗Participate now: www.shheikh.io =========================== 📣How to participate: ✅Visit www.shheikh.io ✅ Connect your wallet ✅ Purchase SHHEIKH tokens (Min: $10) ✅ Receive instant 5% bonus ✅ Follow their Twitter & Join Telegram =========================== 🖥SHHEIKH has raised $6.53M+ USDT and sold 2.05 BILLION tokens in Phase 2. Recognized as the #1 AI + RWA project of 2025, combining artificial intelligence with real-world asset tokenization. 🚨Why investors are watching: ✅Royals & whales accumulating positions ✅ $6.53M+ raised from global investors ✅ Analysts' top AI + RWA pick for 2025 ✅ Still early entry before phase closes #Crypto#Blockchain#AI#RWA#DeFi#Altcoins#Tokenization#BullRun2025#NextBigThing#Presale#Wealth#CryptoCommunity 🔴Note:Please do your own research (DYOR) before participating. This is not financial advice (NFA).

Venture Village Wall 🦄

@venturevillagewall · Post #3672 · 21.12.2024 г., 18:50

Sheldon Schiff Proposes USAcoin Peter Schiff advocates replacing Bitcoin as a strategic US reserve with a new crypto asset, USAcoin, featuring a limited supply of 21 million coins and an improved blockchain for better payment capability. He highlights this shift as a pathway to wealth, contrasting his views on Bitcoin, which he refers to as digital gold. Schiff also generated an image with Elon Musk and Donald Trump against a Bitcoin backdrop, criticizing ChatGPT for its content restrictions. _"HODL to the Moon, America!"_ #PeterSchiff#USAcoin#Crypto#Bitcoin#Blockchain#Investment#DigitalGold#Wealth#PaymentSystems#Grok

Venture Village Wall 🦄

@venturevillagewall · Post #4004 · 28.01.2025 г., 01:00

Bitcoin Surges to $102,000 Bitcoin's price has skyrocketed to $102,000, marking a significant milestone in its market value. This surge indicates rising investor confidence and increasing demand in the cryptocurrency sector. #Bitcoin#Crypto#Market#Finance#Investing#BullMarket#Blockchain#Volatility#Trends#Wealth#Trading#Technology#Asset#DigitalCurrency#PriceRise

Airdrop Ninja™

@airdropsalertteam · Post #9466 · 09.10.2025 г., 02:41

📦Exclusive Project Spotlight: SHHEIKH Token 👑 🛍 Phase 2 Price: $0.00405 | Minimum: $10 USDT 💎 Status: Gaining Major Royal Attention 🔗Official Site: www.shheikh.io =========================== 📣How to Participate: ✅Visit www.shheikh.io ✅ Connect Your Wallet ✅ Purchase SHHEIKH Tokens ✅ Follow Twitter & Join Telegram =========================== 🔥SHHEIKH has raised $6.53M+ USDT with confirmed interest from Middle Eastern royal investors. This AI-powered RWA project represents real institutional momentum and technological innovation. 🚨Key Highlights: ✅$6.53M+ raised from global investors ✅Middle Eastern royals in active talks ✅ Real institutional power and backing ✅ Limited time remaining in Phase 2 #Crypto#Blockchain#AI#RWA#DeFi#Altcoins#Tokenization#Presale#CryptoCommunity#BullRun2025#Wealth#NextBigThing 🔴Note:Please do your own research (DYOR) before participating. Nothing in this post is financial advice (NFA).

Venture Village Wall 🦄

@venturevillagewall · Post #4023 · 29.01.2025 г., 19:00

Massive $4M Profit in Hours! Mr. Burns profited over $4 million within six hours of trading the VINE token. Initially investing $70k, he sold 9.96 million VINE for $2.36 million while retaining 4.67 million VINE worth $1.73 million—highlighting a surge in the token's value. 📈 Full story: Mr. Burns’ Trading Success #Crypto#VINE#Trading#Profit#Investing#Tokens#Blockchain#ATH#Finance#Wealth#MrBurns#VentureCapital#Speculation

Venture Village Wall 🦄

@venturevillagewall · Post #4077 · 05.02.2025 г., 19:00

BlackRock Launches Bitcoin ETP in Europe BlackRock, the largest asset manager globally, is set to launch an exchange-traded product (ETP) linked to Bitcoin in Europe. Marketing may start this month, marking BlackRock's first crypto-linked ETP outside North America. Read more #BlackRock#Bitcoin#ETP#Crypto#Finance#Investment#Europe#Assets#Market#Trade#Blockchain#News#Regulation#ETF#DigitalAssets#Wealth#Trading#Economy#Global#FinanceNews

Venture Village Wall 🦄

@venturevillagewall · Post #3380 · 18.12.2024 г., 12:09

Mirabelle Secures $1.05M Funding Mirabelle, specializing in mortgage life financing for seniors, has secured $1.05 million in funding as of December 3, 2024. The service aims to enhance retirement experiences by valuing wealth while allowing seniors to remain in their homes. #Funding#Mortgage#LifeFinance#Seniors#Retirement#Housing#Wealth#FinancialServices#Mirabelle#Finance

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