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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #83 · 11 мај

У строки в Python есть два очень похожих метода. На столько похожих что кажется они делают одно и тоже. Это метод isdigit() и isnumeric() Давайте посмотрим зачем нам два одинаковых метода? И так ли они одинаковы? Очевидно что isdigit() говорит нам, состоит ли строка только из чисел 0-9 >>> '12'.isdigit() True >>> '12x'.isdigit() False >>> '-12'.isdigit() False >>> '12.5'.isdigit() False Можно предположить что isnumeric() делает более глубокий анализ и распознаёт в строке float или отрицательное число. >>> '15'.isnumeric() True >>> '-15'.isnumeric() False >>> '15.2'.isnumeric() False Нет, всё так же как и с другим методом. В чем же тогда разница? Для начала посмотрим следующие примеры: >>> '5'.isdigit(), '5'.isnumeric() # Обычная цифра 5 # True, True >>> '꧕'.isdigit(), '꧕'.isnumeric() # Яванская 5 # True, True >>> '෩'.isdigit(), '෩'.isnumeric() # Синхала 3 # True, True >>> '৩'.isdigit(), '৩'.isnumeric() # Бенгальская 3 # True, True >>> '༣'.isdigit(), '༣'.isnumeric() # Тибетская 3 # True, True >>> '³'.isdigit(), '³'.isnumeric() # 3 верхний индекс (степень) # True, True >>> '𝟝'.isdigit(), '𝟝'.isnumeric() # Математическая двойная 5 # True, True >>> '๔'.isdigit(), '๔'.isnumeric() # Тайская 4 # True, True >>> '➑'.isdigit(), '➑'.isnumeric() # 8 в круге # True, True А теперь примеры в которых, по мнению Python, результаты не равны >>> '¾'.isdigit(), '¾'.isnumeric() # дробь три четверти # False, True >>> '⅕'.isdigit(), '⅕'.isnumeric() # дробь одна пятая # False, True >>> '𒐶'.isdigit(), '𒐶'.isnumeric() # клинопись 3 # False, True >>> '三'.isdigit(), '三'.isnumeric() # 3 из унифицированной идеограммы # False, True >>> '⑩'.isdigit(), '⑩'.isnumeric() # цифра 10 в круге # False, True >>> 'Ⅳ'.isdigit(), 'Ⅳ'.isnumeric() # Римская 4 # False, True >>> '𑇪'.isdigit(), '𑇪'.isnumeric() # Сенегальская архаическая 10 # False, True >>> '𐌢'.isdigit(), '𐌢'.isnumeric() # Этрусская цифра 10 # False, True >>> 'ↂ'.isdigit(), 'ↂ'.isnumeric() # Римская цифра 10000 # False, True >>> '〇'.isdigit(), '〇'.isnumeric() # Символ ККЯ ноль # False, True Получается, что isdigit() говорит нам, является ли символ десятичной цифрой или спецсимволом, имеющим цифирное значение после преобразования. В свою очередь isnumeric() включает все дополнительные символы юникода которые имеют отношения к числовым и цифровым представлениям. Ну и пара примеров в которых в обоих случаях символ не является числом, это эмодзи. >>> '🕙'.isdigit(), '🕙'.isnumeric() # эмодзи 10 часов # False, False >>> '7️⃣'.isdigit(), '7️⃣'.isnumeric() # эмодзи 7 # False, False Также есть еще один дополнительный и весьма полезный метод isdecimal(). Он нам сообщает, можно ли из указанного символа сделать простую десятичную цифру. То есть сработает ли метод int(x) >>> '෩'.isdecimal(), int('෩') # Синхала 3 # True, 3 >>> '➑'.isdecimal(), int('➑') # 8 в круге # False, ValueError Какие выводы? 🔸 При определении цифры в строке isdigit() подходит лучше чем isnumeric(), но оба не гарантируют успешную конвертацию в int 🔸 Для однозначного определения возможности преобразования строки в int лучше подходит метод isdecimal() 🔸 Для однозначного определения символов 0...9 лучше использовать regex Полный список символов юникода которые определяются как numeric #basic

Hashtags

Резултати

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

Пребарај: #fearandgreed

当前筛选 #fearandgreed清除筛选

How to use Fear & Greed and Altcoin Season indicators to make decisions? If you trade or invest in crypto, these two indicators will help you understand the overall market sentiment and choose a more intelligent strategy. Let's look at what they show: 😨Fear & Greed Index. Current: 52 — Neutral This index reflects the emotions of traders: 0–24 — Strong fear. Market is oversold, entry points are possible. 25–49 — Fear. Cautious mood, consolidation possible. 50–74 — Greed. Investors are confident, but they should be more careful. 75-100 — Strong greed. Overheating and rollback may occur. 🤔What to do: If fear is high (especially <25) — consider purchases. If you are very greedy (>75) — take profit, do not enter at highs. 💎Altcoin Season Index. Current: 17/100 This indicator shows who dominates the market — Bitcoin or altcoins: <25 — Bitcoin Season: Capital Flows into Bitcoin, Alts Weaken. 25–75 — Mixed phase. >75 — Altcoin Season: altcoins are actively growing. 🤔What to do: Now (17/100) — Bitcoin dominates. Risks for altcoins are higher. Better to focus on BTC and wait for a trend change. When >75 - you can look for alts with strong dynamics and enter them on growing interest. 🐃Trade in Telegram mini app #Crypto#AltcoinSeason#FearAndGreed

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1592 · 21.12.2025 г., 06:18

😱🤑 Fear dominates crypto sentiment across BTC and ETH. 恐慌與貪婪指數更新(12/20) • BTC:20|極度恐慌 • ETH:33|恐慌 #BTC#ETH#FearAndGreed ——— ➡️ 市場情緒明顯偏向防守,風險厭惡升溫。#Markets#Insight 👇⭐️👇 🤣 資源搜索 點擊 🖲️👆

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1247 · 29.10.2025 г., 16:52

😱🤑 Market Sentiment Update 📊#FearandGreed#Index: • BTC:51(中性偏多) • ETH:49(中性偏空) ☺️多空拉鋸,加密市場進入猶豫換手期。情緒一旦突破臨界點 → 波動會加大 #Insight 👍@EthereumGlobalNews 🥲 🥲Follow for more Web3 News 🤣

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1355 · 14.11.2025 г., 02:28

🪙EthGlobalNews | #BTCMarket Alert 🚨 ALERT: #Crypto sentiment has plunged into extreme fear — the lowest since March. #Bitcoin is hovering near $100K while gold and silver rally sharply after the US government shutdown ended. —————— 📌 市場情緒跌至三月以來最低點;避險資產走強下,BTC 價格仍承壓震盪。 #FearAndGreed#Macro ——— 👍@Web3NewsInsight 🥲 🥲Follow for more Web3 News 🤣

🇺🇸📊 以太全球新聞 📆 2025-10-11 EthereumGlobalNews📈數據恐慌值 🤑😱【#BTC 恐懼與貪婪指數為 27 —— 市場處於「恐懼」狀態】 市場情緒明顯轉弱,投資者傾向保守觀望。該指數顯示潛在超賣情緒正在醞釀。 #FearAndGreed#BTC#市場情緒#CryptoSentim

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1866 · 21.01.2026 г., 07:30

🪙😱 Market Sentiment 📊 情緒指標更新: • 當前指數:24(Extreme Fear) • 市場情緒跌入 極度恐慌區間 • 投資者風險偏好顯著下降 • 恐慌拋售與去槓桿情緒同步放大 #Ethereum#Markets#Sentiment#FearAndGreed#恐惧贪婪#区块链 ——— 結構解讀關鍵👇🥇資源搜索群🖲️👆 ⚡️ Insight: • Extreme Fear 通常出现在: – 大规模清算之后 – 价格快速回调阶段 • 历史上,多数中期底部都形成于 恐慌区间 • 情绪与价格往往存在 明显滞后效应 • 当市场最悲观时,往往接近 阶段性转折点 📌 极度恐慌,往往是 趋势投资者最关注的区域。 👇⭐️👇 🤣留言分享觀點 🥲👇

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1527 · 09.12.2025 г., 09:28

😱🤑 Fear & Greed Index Update #ETH 情緒:Fear(37) #以太坊#市场情绪#虚拟货币 #CryptoAnalysis#FearAndGreed ——— 已反彈至恐懼情緒不建議今天瞎雞巴操作❗️#Insight ✅Chat: @Web3NewsInsight 🦂 👇Tip👇讚 或點擊進行💎資源搜索👇

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1223 · 27.10.2025 г., 08:58

💥 Bitcoin Market Pulse #MarketSentiment 🔥 TODAY: Bitcoin Fear & Greed Index 離開「恐懼」區間,為近期暴跌後首次反彈。 🚨 Market Movers #Saylor#MicroStrategy 📣 SAYLOR:「It’s Orange Dot Day.」 #Insight : MicroStrategy 週更式增持 BTC 可能再度啟動 #BTC#FearAndGreed 👍@EthereumGlobalNews 🥲 🥲Follow for more Web3 News 🤣

【 BTC / ETH 10/15恐懼貪婪指數 】 #BTC 恐懼與貪婪指數位於「恐懼」區間,#ETH 指數 則接近中性偏貪婪,顯示部分資金正在逐步回流以太坊生態。 #FearAndGreed#BTC情緒#ETH情緒 🤣 以太區塊鏈新聞 🗓 2025-10-15 EthereumGlobalNews 💵#市場情緒觀察

Venture Village Wall 🦄

@venturevillagewall · Post #4250 · 26.02.2025 г., 13:00

Crypto Market Faces Severe Downturn 1️⃣ BTC inflow to exchanges hits annual high amidst panic. Price dropped below $90,000, triggering massive sell-offs. 2️⃣ Fear & Greed Index plunges to extreme fear (25), signaling anxiety in crypto markets. 3️⃣ BTC holders recorded losses of $1.73 billion, marking the highest since August 2024. 4️⃣ ETF funds faced major outflows totaling $1.01 billion, a record since launch. 5️⃣ Meme coins like Dogecoin and Shiba Inu drop significantly, as market saturation affects their traction. 6️⃣ New AI-meme project MIND of Pepe raises $6.8 million, distinguishing itself with functional AI integration. 7️⃣ Ethereum Foundation pledges $1.25 million for legal defense of Tornado Cash developer. 📈More Details on Bitcoin Rally Potential 🔗Ethena Stablecoin Investment 🔗Optifye Startup Controversy #Crypto#BTC#ETH#MemeCoins#AI#MarketTrends#Investments#Outflows#FearAndGreed#Blockchain#Saturation#MarketAnalysis#DeFi#Ethereum#TornadoCash#VC#WhaleAlert#YCombinator#Optifye#MINDofPepe