@ethereumglobalnews · Post #938 · 13.10.2025 г., 05:58
🤣以太區塊鏈新聞 #恐懼貪婪指數 🚨【 #FearandGreed 回升:市場情緒略有修復】🌚加密貨幣恐懼與貪婪指數自昨日的 24(極度恐懼) 回升至 38(恐懼)情緒出現初步修復跡象 #FearnGreed#市場情緒#CryptoIndex
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
Пребарај: #cryptoindex
@ethereumglobalnews · Post #938 · 13.10.2025 г., 05:58
🤣以太區塊鏈新聞 #恐懼貪婪指數 🚨【 #FearandGreed 回升:市場情緒略有修復】🌚加密貨幣恐懼與貪婪指數自昨日的 24(極度恐懼) 回升至 38(恐懼)情緒出現初步修復跡象 #FearnGreed#市場情緒#CryptoIndex
@CryptoM · Post #65098 · 11.04.2026 г., 00:52
🚀 Altcoin Season Index Remains Steady at 35 CoinMarketCap's Altcoin Season Index has maintained its position at 35, unchanged from the previous day. According to NS3.AI, this index measures the performance of leading cryptocurrencies compared to Bitcoin over the past 90 days. #Altcoin#Crypto#Bitcoin#CoinMarketCap#Cryptocurrency#AltcoinSeason#NS3AI#CryptoIndex#CryptoNews#BTC
@CryptoM · Post #64469 · 09.04.2026 г., 01:45
🚀 Altcoin Season Index Remains Steady at 34 CoinMarketCap's Altcoin Season Index has remained at 34, showing no change from the previous day. According to NS3.AI, this index evaluates the 90-day performance of the top 100 cryptocurrencies, excluding stablecoins and wrapped tokens, in comparison to Bitcoin. #AltcoinSeason#Cryptocurrency#CryptoMarket#Bitcoin#Altcoins#CoinMarketCap#CryptoIndex#NS3AI#BTC
@CryptoM · Post #65000 · 10.04.2026 г., 13:19
🚀 CoinDesk 20 Experiences Slight Decline Amid Mixed Asset Performance The CoinDesk 20 index recorded a minor decrease, trading at 2,007.93, reflecting a 0.2% drop or a decline of 3.4 points from the previous day's close. According to NS3.AI, individual asset performances varied, with HBAR experiencing a 1.9% decline and ADA falling by 1.3%. In contrast, AVAX saw a rise of 0.6%, while BTC increased by 0.3%. #CoinDesk20#CryptoMarket#HBAR#ADA#AVAX#BTC#CryptoIndex#AssetPerformance
@CryptoM · Post #64668 · 09.04.2026 г., 13:18
🚀 CoinDesk 20 Experiences Slight Decline as ICP Leads Gains The CoinDesk 20 index recorded a slight decrease, trading at 1,982.06, marking a 0.6% drop since 4 p.m. ET on Wednesday. According to NS3.AI, Bitcoin remained stable during this period. Internet Computer Protocol (ICP) emerged as the leading gainer with a 1.5% increase, while AAVE and Stellar (XLM) were among the assets experiencing declines. #CoinDesk20#ICP#Bitcoin#AAVE#Stellar#Cryptocurrency#MarketDecline#CryptoIndex#BTC