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

Резултати

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

Пребарај: #cryptocom

当前筛选 #cryptocom清除筛选
SpotOnChain | Announcement

@spotonchain · Post #97 · 12.03.2023 г., 15:24

📊📊Can Circle handle the $USDC withdrawal on Monday when the banks are open? Let's review some stats ➡️CEX USDC Balances: total 7.189B Top 3: 1. #Binance : 5.16B 2. #cryptocom: 785M 3. #Okx: 421M ➡️Netflow to CEX is also increasing over the hours in the past 2 days. Dune link:https://dune.com/spotonchain/spotonchain-cex-usdc-flow

SIGNAL

@finsignal · Post #3793 · 23.04.2025 г., 20:59

😎 Trump launches #ETF without #Coinbase Trump Media has announced a partnership with Crypto.Com to launch the #ETF line, it will include cue ball and “pro—American” assets, all under the “Made in America” brand Why #CryptoCom was chosen, and not #Coinbase — through which $529,325BTC has already passed in an ETF — remains a question.

NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24514 · 11.05.2026 г., 11:51

【📜政策|Crypto.com 取得阿聯央行 SVF 牌照:杜拜政府規費可用加密支付】 Crypto.com 透過杜拜實體取得阿聯央行 SVF 牌照、成為首家持牌 VASP。直接啟動與杜拜財政部的政府規費加密支付合作、阿聯酋航空整合也將啟動。 #Cryptocom#UAE#杜拜 📍閱讀全文: https://abmedia.io/crypto-com-uae-svf-license-dubai-government-payments-may-2026

Venture Village Wall 🦄

@venturevillagewall · Post #3818 · 08.01.2025 г., 07:00

Bitcoin Drops Below $97,000 Bitcoin fell below $97,000 during the night. Liquidation volumes topped $625 million within 24 hours. In Kazakhstan, regulators have blocked over 3,500 illegal crypto exchanges, including Coinbase, for violating digital asset laws. On January 7, the Bitcoin spot ETF net inflow reached $52.39 million, while BlackRock's ETF IBIT saw $596 million in inflow, bringing the total net asset value of Bitcoin spot ETFs to $110.115 billion. Additionally, a large transfer of 250,080,000 #CRO ($36.78M) was made from #CryptoCom to an unknown wallet. #Bitcoin#Crypto#Kazakhstan#ETF#CRO#CryptoCom#WhaleAlert#Finance#MarketUpdate#Liquidation#News#Blockchain#Regulators#Assets#Investment#DigitalAssets#CryptoNews#MarketTrends#CryptoExchange#CryptoRegulation

Venture Village Wall 🦄

@venturevillagewall · Post #4297 · 03.03.2025 г., 19:00

Major Crypto Movements and Developments 🚨 1,823,409 #SOL ($274M) transferred to Coinbase Institutional. Whale Alert details multiple transfers. ANTHROPIC achieves $61.5B valuation; former FTX stake now worth $5B. Michael Saylor predicts Bitcoin market cap could reach $20-$200 trillion. His company paused BTC purchases; only 904 BTC away from 500,000 total. ZKnox launches with Ethereum Foundation support, focusing on post-quantum cryptography to enhance Ethereum security. Congressmen Emmer & Torres establish 'Congressional Crypto Caucus' for pro-crypto legislation. Crypto.com’s Cronos protocol debates reissuing 70B burned CRO tokens; community vote shows over 86% against the proposal. Links: ZKnox Launch, Cronos Proposal #SOL#Bitcoin#Crypto#AI#Ethereum#ZKnox#Congress#Legislation#Caucus#ANTHROPIC#FTX#CRO#CryptoCom#PostQuantum#Security#Efficiency#Strategy#NFT#DeFi#MarketCap